mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Merge: Fix potential resource leak in test_mmap.
This commit is contained in:
commit
b0b0579625
1 changed files with 1 additions and 0 deletions
|
|
@ -673,6 +673,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…
Add table
Add a link
Reference in a new issue