summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-28 09:51:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-28 09:51:18 +0000
commit08b4f9138cd3614454d35f61478e6145433682d4 (patch)
treeedf4094eb4ecb21c1aec8198909416298c9b11ea
parentca658280142cd822f4193bd3cb80bd6f4fbed877 (diff)
* 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
-rw-r--r--test/ruby/test_sprintf.rb3
1 files changed, 3 insertions, 0 deletions
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