[Python-checkins] cpython (3.4): Issue #25004: Handle out-of-disk-space error in LargeMmapTests

martin.panter python-checkins at python.org
Mon Sep 7 06:17:57 CEST 2015


https://hg.python.org/cpython/rev/7a9dddc11f2e
changeset: 97720:7a9dddc11f2e
branch: 3.4
parent: 97717:57f8c7ad7782
user: Martin Panter <vadmium>
date: Mon Sep 07 02:57:47 2015 +0000
summary:
 Issue #25004: Handle out-of-disk-space error in LargeMmapTests
Patch from John Beck.
files:
 Lib/test/test_mmap.py | 5 ++++-
 Misc/ACKS | 1 +
 2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py
--- a/Lib/test/test_mmap.py
+++ b/Lib/test/test_mmap.py
@@ -727,7 +727,10 @@
 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
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -100,6 +100,7 @@
 Samuel L. Bayer
 Donald Beaudry
 David Beazley
+John Beck
 Neal Becker
 Robin Becker
 Torsten Becker
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /