mirror of https://github.com/python/cpython
Fix potential resource leak in test_mmap.
This commit is contained in:
parent
909f6d2fba
commit
7420b70240
|
@ -664,6 +664,7 @@ class LargeMmapTests(unittest.TestCase):
|
||||||
f.write(tail)
|
f.write(tail)
|
||||||
f.flush()
|
f.flush()
|
||||||
except (IOError, OverflowError):
|
except (IOError, OverflowError):
|
||||||
|
f.close()
|
||||||
raise unittest.SkipTest("filesystem does not have largefile support")
|
raise unittest.SkipTest("filesystem does not have largefile support")
|
||||||
return f
|
return f
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue