diff options
| author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-07 14:35:05 +0200 |
|---|---|---|
| committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-07 14:35:05 +0200 |
| commit | 7420b70240586b700f5cadfa0bbdffbbe6cb8e5a (patch) | |
| tree | a3133cd5d2247052a871e3c245b9634f379a6251 /Lib/test/test_mmap.py | |
| parent | 909f6d2fbaefe6d191c87f5439545a85d74f6c54 (diff) | |
| download | cpython-git-7420b70240586b700f5cadfa0bbdffbbe6cb8e5a.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 0a177c66a2..f7d6c6ff65 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 |
