diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-07 12:36:14 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-07 12:36:14 (GMT) |
commit | da91d1892a083c450fabca51046ee4f9d66a1e35 (patch) | |
tree | 80b66e14785702f9b37a6a8a577e8d92bf532ecd /Lib | |
parent | ce792301738bc6a1e95d0310bacb664f8d31a747 (diff) | |
parent | b0b0579625defd7ec370680075fb8ce46db4cd20 (diff) | |
download | cpython-da91d1892a083c450fabca51046ee4f9d66a1e35.zip cpython-da91d1892a083c450fabca51046ee4f9d66a1e35.tar.gz cpython-da91d1892a083c450fabca51046ee4f9d66a1e35.tar.bz2 |
Merge: Fix potential resource leak in test_mmap.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_mmap.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index 850768f..712378b 100644 --- a/Lib/test/test_mmap.py +++ b/Lib/test/test_mmap.py @@ -673,6 +673,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 |