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

ruby-changes:18184

From: usa <ko1@a...>
Date: Tue, 14 Dec 2010 14:34:50 +0900 (JST)
Subject: [ruby-changes:18184] Ruby:r30205 (trunk): * test/ruby/test_io.rb (test_binmode_after_closed): the temporary file

usa	2010-12-14 14:26:34 +0900 (Tue, 14 Dec 2010)

  New Revision: 30205

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

  Log:
    * test/ruby/test_io.rb (test_binmode_after_closed): the temporary file
      maked by make_temfile is already closed.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_io.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30204)
+++ ChangeLog	(revision 30205)
@@ -1,3 +1,11 @@
+Tue Dec 14 14:24:15 2010  NAKAMURA Usaku  <usa@r...>
+
+	* test/ruby/test_io.rb (make_tempfile): change the prefix from 'foo'
+	  to 'test_io' because the old one is meaningless and inconvenient.
+
+	* test/ruby/test_io.rb (test_binmode_after_closed): the temporary file
+	  maked by make_temfile is already closed.
+
 Tue Dec 14 13:52:19 2010  NAKAMURA Usaku  <usa@r...>
 
 	* test/ruby/test_io.rb (test_flush_in_finalizer[12]): should close
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 30204)
+++ test/ruby/test_io.rb	(revision 30205)
@@ -1065,7 +1065,7 @@
   end
 
   def make_tempfile
-    t = Tempfile.new("foo")
+    t = Tempfile.new("test_io")
     t.binmode
     t.puts "foo"
     t.puts "bar"
@@ -1654,7 +1654,6 @@
 
   def test_binmode_after_closed
     t = make_tempfile
-    t.close
     assert_raise(IOError) {t.binmode}
   end
 

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

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