Close leaked file descriptor

This commit is contained in:
Nobuyoshi Nakada 2019-06-28 12:31:21 +09:00
parent c9bbcaccf2
commit dc7da30bed
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -23,6 +23,8 @@ class TestScanfIO < Test::Unit::TestCase
w.write('a')
w.close
assert_equal([], r.scanf('a'))
ensure
r.close
end
end