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