summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/scanf/test_scanfio.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/scanf/test_scanfio.rb b/test/scanf/test_scanfio.rb
index f7c439276d..e3b8f45bf4 100644
--- a/test/scanf/test_scanfio.rb
+++ b/test/scanf/test_scanfio.rb
@@ -23,6 +23,8 @@ class TestScanfIO < Test::Unit::TestCase
w.write('a')
w.close
assert_equal([], r.scanf('a'))
+ ensure
+ r.close
end
end