summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_io.rb8
1 files changed, 7 insertions, 1 deletions
@@ -2135,6 +2135,12 @@ class TestIO < Test::Unit::TestCase
end
def test_autoclose_true_closed_by_finalizer
feature2250 = '[ruby-core:26222]'
pre = 'ft2250'
t = Tempfile.new(pre)
@@ -2150,7 +2156,7 @@ class TestIO < Test::Unit::TestCase
assert_raise(Errno::EBADF, feature2250) {t.close}
end
ensure
- t.close!
end
def test_autoclose_false_closed_by_finalizer