diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-08 02:54:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-08 02:54:20 +0000 |
commit | 81fb05db9a09759e50b9b8004a89fd281d36bf67 (patch) | |
tree | 079851eccdebf3a41e49254ffad6ca80eb0e6360 /test/ruby/test_class.rb | |
parent | 3d1c86a26f0c96a9c1d0247b968aa96e6f3c30bb (diff) |
Suppress warning [Feature #15575]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_class.rb')
-rw-r--r-- | test/ruby/test_class.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb index ad2caeb8be..b74833e894 100644 --- a/test/ruby/test_class.rb +++ b/test/ruby/test_class.rb @@ -262,7 +262,9 @@ class TestClass < Test::Unit::TestCase end def test_invalid_yield_from_class_definition - assert_raise(LocalJumpError) { eval("class C; yield; end") } + assert_raise(LocalJumpError) { + EnvUtil.suppress_warning {eval("class C; yield; end")} + } end def test_clone |