mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
stringio.c: close separatedly
* ext/stringio/stringio.c (strio_close): close separatedly per each instances, as well as IO. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
897a3fce91
commit
56f9574de8
3 changed files with 63 additions and 45 deletions
|
@ -234,7 +234,7 @@ class TestStringIO < Test::Unit::TestCase
|
|||
assert_equal(nil, f1.getc)
|
||||
assert_equal(true, f2.eof?)
|
||||
f1.close
|
||||
assert_equal(true, f2.closed?)
|
||||
assert_equal(false, f2.closed?, '[ruby-core:48443]')
|
||||
ensure
|
||||
f1.close unless f1.closed?
|
||||
f2.close unless f2.closed?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue