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:
parent
a2366a15ba
commit
0f31971ad3
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue