From ae7e1482562e4132ea2b3a37eefd124a343b9fc4 Mon Sep 17 00:00:00 2001 From: mame Date: Wed, 23 Jul 2008 12:38:49 +0000 Subject: [PATCH] * test/ruby/test_marshal.rb: suppress warning during test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ test/ruby/test_marshal.rb | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8299c10738..c11a8bc4ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Jul 23 21:38:16 2008 Yusuke Endoh + + * test/ruby/test_marshal.rb: suppress warning during test. + Wed Jul 23 21:35:53 2008 Yusuke Endoh * test/ruby/test_dir.rb: suppress warning during test. diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index 267f435bcb..069844583b 100644 --- a/test/ruby/test_marshal.rb +++ b/test/ruby/test_marshal.rb @@ -4,6 +4,15 @@ require_relative 'marshaltestlib' class TestMarshal < Test::Unit::TestCase include MarshalTestLib + def setup + @verbose = $VERBOSE + $VERBOSE = nil + end + + def teardown + $VERBOSE = @verbose + end + def encode(o) Marshal.dump(o) end