]> granicus.if.org Git - python/commitdiff
Issue #25004: Handle out-of-disk-space error in LargeMmapTests
authorMartin Panter <vadmium>
Mon, 7 Sep 2015 02:57:47 +0000 (02:57 +0000)
committerMartin Panter <vadmium>
Mon, 7 Sep 2015 02:57:47 +0000 (02:57 +0000)
Patch from John Beck.

Lib/test/test_mmap.py
Misc/ACKS

index 4d23f16890793774817617e18561f4c81f45739d..ad93a59383421625ad76bf693174cba6708caaf7 100644 (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
 
index 435cd1215890544e2c3976338adc498ef017c50c..88e55e022f4b8e282b138623b7b37965d7f2e987 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -100,6 +100,7 @@ Mike Bayer
 Samuel L. Bayer
 Donald Beaudry
 David Beazley
+John Beck
 Neal Becker
 Robin Becker
 Torsten Becker