Commit 10679e34 authored by Martin Panter's avatar Martin Panter

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

Patch from John Beck.
parent 146794b4
...@@ -727,7 +727,10 @@ class LargeMmapTests(unittest.TestCase): ...@@ -727,7 +727,10 @@ class LargeMmapTests(unittest.TestCase):
f.write(tail) f.write(tail)
f.flush() f.flush()
except (OSError, OverflowError): except (OSError, OverflowError):
try:
f.close() f.close()
except (OSError, OverflowError):
pass
raise unittest.SkipTest("filesystem does not have largefile support") raise unittest.SkipTest("filesystem does not have largefile support")
return f return f
......
...@@ -100,6 +100,7 @@ Mike Bayer ...@@ -100,6 +100,7 @@ Mike Bayer
Samuel L. Bayer Samuel L. Bayer
Donald Beaudry Donald Beaudry
David Beazley David Beazley
John Beck
Neal Becker Neal Becker
Robin Becker Robin Becker
Torsten Becker Torsten Becker
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment