aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-14 05:26:34 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-14 05:26:34 +0000
commit4d257293f8b434adc6325b1dff962f6ee27347a7 (patch)
treebd32ecbebe6d10399817b3e55eadbbb84707db88
parenta5b77d1cf70d6d76141712dd6fb809cd8f7cb0d3 (diff)
downloadruby-4d257293f8b434adc6325b1dff962f6ee27347a7.tar.gz
* test/ruby/test_io.rb (test_binmode_after_closed): the temporary file
maked by make_temfile is already closed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog8
-rw-r--r--test/ruby/test_io.rb3
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1edc0114fa..cf1d462fd6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Tue Dec 14 14:24:15 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * 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@ruby-lang.org>
* test/ruby/test_io.rb (test_flush_in_finalizer[12]): should close
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index f8186840f9..32839953f2 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -1065,7 +1065,7 @@ class TestIO < Test::Unit::TestCase
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 @@ End
def test_binmode_after_closed
t = make_tempfile
- t.close
assert_raise(IOError) {t.binmode}
end