diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-07 12:35:05 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-07 12:35:05 (GMT) |
commit | 7420b70240586b700f5cadfa0bbdffbbe6cb8e5a (patch) | |
tree | a3133cd5d2247052a871e3c245b9634f379a6251 /Lib/test/test_mmap.py | |
parent | 909f6d2fbaefe6d191c87f5439545a85d74f6c54 (diff) | |
download | cpython-7420b70240586b700f5cadfa0bbdffbbe6cb8e5a.zip cpython-7420b70240586b700f5cadfa0bbdffbbe6cb8e5a.tar.gz cpython-7420b70240586b700f5cadfa0bbdffbbe6cb8e5a.tar.bz2 |
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 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 |