diff --git a/test/psych/test_exception.rb b/test/psych/test_exception.rb index 3c72f4a9..df7fd737 100644 --- a/test/psych/test_exception.rb +++ b/test/psych/test_exception.rb @@ -15,6 +15,12 @@ def initialize *args def setup super @wups = Wups.new + + @orig_verbose, $VERBOSE = $VERBOSE, nil + end + + def teardown + $VERBOSE = @orig_verbose end def test_naming_exception diff --git a/test/psych/test_psych.rb b/test/psych/test_psych.rb index 3a04a3fe..eeadc864 100644 --- a/test/psych/test_psych.rb +++ b/test/psych/test_psych.rb @@ -5,8 +5,14 @@ require 'tempfile' class TestPsych < Psych::TestCase + + def setup + @orig_verbose, $VERBOSE = $VERBOSE, nil + end + def teardown Psych.domain_types.clear + $VERBOSE = @orig_verbose end def test_line_width_invalid diff --git a/test/psych/test_safe_load.rb b/test/psych/test_safe_load.rb index 82a5f19c..6c7a8d0f 100644 --- a/test/psych/test_safe_load.rb +++ b/test/psych/test_safe_load.rb @@ -3,6 +3,14 @@ module Psych class TestSafeLoad < TestCase + def setup + @orig_verbose, $VERBOSE = $VERBOSE, nil + end + + def teardown + $VERBOSE = @orig_verbose + end + class Foo; end [1, 2.2, {}, [], "foo"].each do |obj|