summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_mmap.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium>2015-09-07 04:04:40 (GMT)
committerMartin Panter <vadmium>2015-09-07 04:04:40 (GMT)
commitda19767b86dcee5810ad8c77a05811be041d7c89 (patch)
treecb5a3119a7e9033a221cba4c71430083e75815b6 /Lib/test/test_mmap.py
parent6cb196306afe6b2958d76813214d396923d72116 (diff)
parente8d58d1f022b41e3da80ccca7bf3586e2898874a (diff)
downloadcpython-da19767b86dcee5810ad8c77a05811be041d7c89.zip
cpython-da19767b86dcee5810ad8c77a05811be041d7c89.tar.gz
cpython-da19767b86dcee5810ad8c77a05811be041d7c89.tar.bz2
Issue #25004: Merge 3.4 into 3.5
Diffstat (limited to 'Lib/test/test_mmap.py')
-rw-r--r--Lib/test/test_mmap.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py
index 3de84e8..0f25742 100644
--- a/Lib/test/test_mmap.py
+++ b/Lib/test/test_mmap.py
@@ -731,7 +731,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