diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-29 09:23:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-29 09:23:02 +0000 |
commit | 56f9574de8786c3364bbc8e95876abe296c845d7 (patch) | |
tree | 7ef86a11966094222404d7cbcbeb31cdfee40253 /test/stringio | |
parent | 897a3fce917c55ed9751b0834c63c7e6c5085bcf (diff) |
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
Diffstat (limited to 'test/stringio')
-rw-r--r-- | test/stringio/test_stringio.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb index 22cba382fb..417a53b383 100644 --- a/test/stringio/test_stringio.rb +++ b/test/stringio/test_stringio.rb @@ -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? |