diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-07 12:35:36 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-07 12:35:36 (GMT) |
commit | b0b0579625defd7ec370680075fb8ce46db4cd20 (patch) | |
tree | 23f4c7063a1e59ec81e2e5e8d37786e0172579af /Lib/test | |
parent | 044dfadd1c94cd9e69f15346e6ba0c9d4ef7a60d (diff) | |
parent | 7420b70240586b700f5cadfa0bbdffbbe6cb8e5a (diff) | |
download | cpython-b0b0579625defd7ec370680075fb8ce46db4cd20.zip cpython-b0b0579625defd7ec370680075fb8ce46db4cd20.tar.gz cpython-b0b0579625defd7ec370680075fb8ce46db4cd20.tar.bz2 |
Merge: Fix potential resource leak in test_mmap.
Diffstat (limited to 'Lib/test')
-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 |