Suppress warning [Feature #15575]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2019-02-08 02:54:20 +00:00
parent 3d1c86a26f
commit 81fb05db9a

View File

@ -262,7 +262,9 @@ class TestClass < Test::Unit::TestCase
end end
def test_invalid_yield_from_class_definition 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 end
def test_clone def test_clone