mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
a5b77d1cf7
commit
4d257293f8
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue