diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-06-19 10:45:13 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-06-19 10:45:13 +0900 |
commit | 946fdeaddc7bc8e98a0d903c0dcdc1463176b882 (patch) | |
tree | d7b18cfa91a4d6033ef6ead71444918cbcb8e75b | |
parent | d76296d8bb8dab8bc6ea90d1a858689f17e3e0a5 (diff) |
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
```
-rw-r--r-- | test/ruby/test_refinement.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_refinement.rb b/test/ruby/test_refinement.rb index dd443b7945..785113de77 100644 --- a/test/ruby/test_refinement.rb +++ b/test/ruby/test_refinement.rb @@ -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 |