diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_pack.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb index e623a69cbf..5ea21d7827 100644 --- a/test/ruby/test_pack.rb +++ b/test/ruby/test_pack.rb @@ -653,11 +653,13 @@ class TestPack < Test::Unit::TestCase end def test_pack_garbage + verbose = $VERBOSE + $VERBOSE = false + assert_silent do assert_equal "\000", [0].pack("*U") end - verbose = $VERBOSE $VERBOSE = true _, err = capture_io do @@ -670,11 +672,13 @@ class TestPack < Test::Unit::TestCase end def test_unpack_garbage + verbose = $VERBOSE + $VERBOSE = false + assert_silent do assert_equal [0], "\000".unpack("*U") end - verbose = $VERBOSE $VERBOSE = true _, err = capture_io do |