From: Nadeem Vawda Date: Sat, 7 May 2011 12:35:05 +0000 (+0200) Subject: Fix potential resource leak in test_mmap. X-Git-Tag: v3.2.1b1~7^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7420b70240586b700f5cadfa0bbdffbbe6cb8e5a;p=thirdparty%2FPython%2Fcpython.git Fix potential resource leak in test_mmap. --- diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index 0a177c66a2bd..f7d6c6ff6509 100644 --- a/Lib/test/test_mmap.py +++ b/Lib/test/test_mmap.py @@ -664,6 +664,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