From 7420b70240586b700f5cadfa0bbdffbbe6cb8e5a Mon Sep 17 00:00:00 2001 From: Nadeem Vawda Date: Sat, 7 May 2011 14:35:05 +0200 Subject: Fix potential resource leak in test_mmap. --- Lib/test/test_mmap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index 0a177c6..f7d6c6f 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 -- cgit v0.12