summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-17 08:53:32 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-17 08:53:32 +0000
commit0f31971ad3e846cc8d9fa3258e8b9abfe85f0f1f (patch)
tree5058da1c2c7b26a8e23ac47ed72ae35d659ec2f5 /test/ruby
parenta2366a15bad75fb2ddec63d36aff4af4be14ff14 (diff)
Suppress warning in assertion too
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_pattern_matching.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb
index 0af5e3ad97..6aa7c82361 100644
--- a/test/ruby/test_pattern_matching.rb
+++ b/test/ruby/test_pattern_matching.rb
@@ -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