1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/ruby/test_refinement.rb: suppress warning yb $VEROBSE = nil

http://rubyci.s3.amazonaws.com/ubuntu2004/ruby-master/log/20200619T003004Z.log.html.gz
```
/home/chkbuild/chkbuild/tmp/build/20200619T003004Z/ruby/test/ruby/test_refinement.rb:2428: warning: method redefined; discarding old foo
/home/chkbuild/chkbuild/tmp/build/20200619T003004Z/ruby/test/ruby/test_refinement.rb:2418: warning: previous definition of foo was here
```
This commit is contained in:
Yusuke Endoh 2020-06-19 10:45:13 +09:00
parent d76296d8bb
commit 946fdeaddc

View file

@ -2406,6 +2406,7 @@ class TestRefinement < Test::Unit::TestCase
end
def test_refine_frozen_class
verbose_bak, $VERBOSE = $VERBOSE, nil
singleton_class.instance_variable_set(:@x, self)
class << self
c = Class.new do
@ -2436,6 +2437,8 @@ class TestRefinement < Test::Unit::TestCase
@x.assert_equal(:rfoo2, c.new.foo)
@x.assert_equal(:rbar, c.new.bar, '[ruby-core:71391] [Bug #11669]')
end
ensure
$VERBOSE = verbose_bak
end
private