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

ruby-changes:25917

From: naruse <ko1@a...>
Date: Thu, 29 Nov 2012 15:19:37 +0900 (JST)
Subject: [ruby-changes:25917] naruse:r37974 (trunk): * test/minitest/test_minitest_unit.rb: restore orig_verbose only

naruse	2012-11-29 15:19:05 +0900 (Thu, 29 Nov 2012)

  New Revision: 37974

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

  Log:
    * test/minitest/test_minitest_unit.rb: restore orig_verbose only
      if it is set. This broke rdoc's tests.
      http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20121129T050102Z.diff.html.gz

  Modified files:
    trunk/ChangeLog
    trunk/test/minitest/test_minitest_unit.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37973)
+++ ChangeLog	(revision 37974)
@@ -1,3 +1,9 @@
+Thu Nov 29 15:10:45 2012  NARUSE, Yui  <naruse@r...>
+
+	* test/minitest/test_minitest_unit.rb: restore orig_verbose only
+	  if it is set. This broke rdoc's tests.
+	  http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20121129T050102Z.diff.html.gz
+
 Thu Nov 29 14:56:30 2012  Koichi Sasada  <ko1@a...>
 
 	* vm_trace.c (rb_tracepoint_attr_method_id): 
Index: test/minitest/test_minitest_unit.rb
===================================================================
--- test/minitest/test_minitest_unit.rb	(revision 37973)
+++ test/minitest/test_minitest_unit.rb	(revision 37974)
@@ -1343,7 +1343,7 @@
     assert_equal "hi\n", out
     assert_equal "bye!\n", err
   ensure
-    $VERBOSE = orig_verbose
+    $VERBOSE = orig_verbose unless orig_verbose.nil?
   end
 
   def test_class_asserts_match_refutes

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

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