From b15e67584681d25ec981ba89075d46b8a811c127 Mon Sep 17 00:00:00 2001 From: mame Date: Thu, 28 Aug 2008 14:55:53 +0000 Subject: * test/ruby/test_time.rb: suppress warning during test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ test/ruby/test_time.rb | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index e76f56f55..4841d08e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Aug 28 23:55:22 2008 Yusuke Endoh + + * test/ruby/test_time.rb: suppress warning during test. + Thu Aug 28 23:50:47 2008 Yusuke Endoh * test/ruby/test_time.rb (test_strftime): make test for %a independent diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb index b36813bb9..4378e6ff1 100644 --- a/test/ruby/test_time.rb +++ b/test/ruby/test_time.rb @@ -3,6 +3,15 @@ require 'rational' require 'timeout' class TestTime < Test::Unit::TestCase + def setup + @verbose = $VERBOSE + $VERBOSE = nil + end + + def teardown + $VERBOSE = @verbose + end + def test_time_add() assert_equal(Time.utc(2000, 3, 21, 3, 30) + 3 * 3600, Time.utc(2000, 3, 21, 6, 30)) -- cgit