From e8d58d1f022b41e3da80ccca7bf3586e2898874a Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Mon, 7 Sep 2015 02:57:47 +0000 Subject: [PATCH] Issue #25004: Handle out-of-disk-space error in LargeMmapTests Patch from John Beck. --- Lib/test/test_mmap.py | 5 ++++- Misc/ACKS | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index 4d23f168907..ad93a593834 100644 --- a/Lib/test/test_mmap.py +++ b/Lib/test/test_mmap.py @@ -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 diff --git a/Misc/ACKS b/Misc/ACKS index 435cd121589..88e55e022f4 100644 --- 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