From 08b4f9138cd3614454d35f61478e6145433682d4 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 28 Dec 2008 09:51:18 +0000 Subject: [PATCH] * test/ruby/test_sprintf.rb (test_invalid): suppress warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_sprintf.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/ruby/test_sprintf.rb b/test/ruby/test_sprintf.rb index cad9f5e031..c2669a7131 100644 --- a/test/ruby/test_sprintf.rb +++ b/test/ruby/test_sprintf.rb @@ -179,7 +179,10 @@ class TestSprintf < Test::Unit::TestCase assert_raise(ArgumentError) { sprintf("%!", 1) } assert_raise(ArgumentError) { sprintf("%1$1$d", 1) } assert_raise(ArgumentError) { sprintf("%0%") } + verbose, $VERBOSE = $VERBOSE, nil assert_nothing_raised { sprintf("", 1) } + ensure + $VERBOSE = verbose end def test_float