mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_module.rb: suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
16969412b3
commit
f5654b4dfc
1 changed files with 4 additions and 4 deletions
|
@ -55,7 +55,7 @@ class TestModule < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_CMP_0
|
||||
assert_equal -1, (String <=> Object)
|
||||
assert_equal(-1, (String <=> Object))
|
||||
assert_equal 1, (Object <=> String)
|
||||
assert_nil(Array <=> String)
|
||||
end
|
||||
|
@ -528,10 +528,10 @@ class TestModule < Test::Unit::TestCase
|
|||
class << o; self; end.instance_eval { undef_method(:foo) }
|
||||
end
|
||||
|
||||
%w(object_id __send__ initialize).each do |m|
|
||||
assert_in_out_err([], <<-INPUT, [], /warning: undefining `#{m}' may cause serious problems$/)
|
||||
%w(object_id __send__ initialize).each do |n|
|
||||
assert_in_out_err([], <<-INPUT, [], /warning: undefining `#{n}' may cause serious problems$/)
|
||||
$VERBOSE = false
|
||||
Class.new.instance_eval { undef_method(:#{m}) }
|
||||
Class.new.instance_eval { undef_method(:#{n}) }
|
||||
INPUT
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue