From 0f31971ad3e846cc8d9fa3258e8b9abfe85f0f1f Mon Sep 17 00:00:00 2001 From: kazu Date: Wed, 17 Apr 2019 08:53:32 +0000 Subject: [PATCH] Suppress warning in assertion too git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_pattern_matching.rb | 3 +++ 1 file changed, 3 insertions(+) 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