mirror of
https://github.com/python/cpython.git
synced 2025-09-09 02:11:51 +00:00
Fix potential resource leak in test_mmap.
This commit is contained in:
parent
d0a8f16031
commit
5ae6c42f52
1 changed files with 1 additions and 0 deletions
|
@ -655,6 +655,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…
Add table
Add a link
Reference in a new issue