[前][次][番号順一覧][スレッド一覧]

ruby-changes:9595

From: nobu <ko1@a...>
Date: Sun, 28 Dec 2008 18:51:24 +0900 (JST)
Subject: [ruby-changes:9595] Ruby:r21135 (trunk): * test/ruby/test_sprintf.rb (test_invalid): suppress warning.

nobu	2008-12-28 18:51:18 +0900 (Sun, 28 Dec 2008)

  New Revision: 21135

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21135

  Log:
    * test/ruby/test_sprintf.rb (test_invalid): suppress warning.

  Modified files:
    trunk/test/ruby/test_sprintf.rb

Index: test/ruby/test_sprintf.rb
===================================================================
--- test/ruby/test_sprintf.rb	(revision 21134)
+++ test/ruby/test_sprintf.rb	(revision 21135)
@@ -179,7 +179,10 @@
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]