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