Issue #25004: Handle out-of-disk-space error in LargeMmapTests

Patch from John Beck.
This commit is contained in:
Martin Panter 2015-09-07 02:57:47 +00:00
parent 7f02d6d0d9
commit e8d58d1f02
2 changed files with 5 additions and 1 deletions

View File

@ -727,7 +727,10 @@ class LargeMmapTests(unittest.TestCase):
f.write(tail)
f.flush()
except (OSError, OverflowError):
f.close()
try:
f.close()
except (OSError, OverflowError):
pass
raise unittest.SkipTest("filesystem does not have largefile support")
return f

View File

@ -100,6 +100,7 @@ Mike Bayer
Samuel L. Bayer
Donald Beaudry
David Beazley
John Beck
Neal Becker
Robin Becker
Torsten Becker