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

Suppress warning in assertion too

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2019-04-17 08:53:32 +00:00
parent a2366a15ba
commit 0f31971ad3

View file

@ -94,12 +94,15 @@ class TestPatternMatching < Test::Unit::TestCase
end
assert_block do
verbose, $VERBOSE = $VERBOSE, nil # suppress "warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby!"
eval(%q{
case true
in a
a
end
})
ensure
$VERBOSE = verbose
end
assert_block do