diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-07 14:34:22 +0200 |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-07 14:34:22 +0200 |
commit | 5ae6c42f52c650dc317dd5f0ecab8d5087c44872 (patch) | |
tree | 8ef897e1dc1e58fab686d1cf301bf0f614b92375 /Lib/test/test_mmap.py | |
parent | d0a8f160312efb33cb709e5db22cdd605a889c7f (diff) | |
download | cpython-git-5ae6c42f52c650dc317dd5f0ecab8d5087c44872.tar.gz |
Fix potential resource leak in test_mmap.
Diffstat (limited to 'Lib/test/test_mmap.py')
-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 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 |