diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index a87e6ae7219..2c2863ebbe3 100644 --- a/Lib/test/test_mmap.py +++ b/Lib/test/test_mmap.py @@ -655,6 +655,7 @@ class LargeMmapTests(unittest.TestCase): f.write(tail) f.flush() except (IOError, OverflowError): + f.close() raise unittest.SkipTest("filesystem does not have largefile support") return f