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 --- test/ruby/test_time.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/ruby') 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