summaryrefslogtreecommitdiff
path: root/test/ruby/test_syntax.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_syntax.rb')
-rw-r--r--test/ruby/test_syntax.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index 6798543fbd..564fc21c47 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -940,7 +940,9 @@ eom
eval('1 if !//')
end
assert_warn('') do
+ verbose_bak, $VERBOSE = $VERBOSE, nil
eval('1 if !(true..false)')
+ $VERBOSE = verbose_bak
end
assert_warning('') do
eval('1 if !1')