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:
parent
3d1c86a26f
commit
81fb05db9a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user