summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_trick.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_trick.rb b/test/test_trick.rb
index ddedb6e527..878d79e628 100644
--- a/test/test_trick.rb
+++ b/test/test_trick.rb
@@ -243,6 +243,8 @@ class TestAllRubyQuine < Test::Unit::TestCase
def test_all_ruby_quine
stdout_bak = $stdout
$stdout = StringIO.new
+ verbose_bak = $VERBOSE
+ $VERBOSE = nil
src = File.read(File.join(__dir__, "../sample/all-ruby-quine.rb"))
eval(src)
@@ -266,5 +268,6 @@ class TestAllRubyQuine < Test::Unit::TestCase
assert_equal(RUBY_VERSION, out)
ensure
$stdout = stdout_bak
+ $VERBOSE = verbose_bak
end
end