From: Nadeem Vawda Date: Sat, 7 May 2011 12:34:22 +0000 (+0200) Subject: Fix potential resource leak in test_mmap. X-Git-Tag: v2.7.2rc1~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ae6c42f52c650dc317dd5f0ecab8d5087c44872;p=python Fix potential resource leak in test_mmap. --- diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index a87e6ae721..2c2863ebbe 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