http://hg.python.org/cpython/rev/c066dd9dfc65 changeset: 69898:c066dd9dfc65 branch: 2.7 parent: 69894:9b9f0de19684 user: Nadeem Vawda <nadeem.vawda at gmail.com> date: Sat May 07 14:34:22 2011 +0200 summary: Fix potential resource leak in test_mmap. files: 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 --- a/Lib/test/test_mmap.py +++ b/Lib/test/test_mmap.py @@ -655,6 +655,7 @@ f.write(tail) f.flush() except (IOError, OverflowError): + f.close() raise unittest.SkipTest("filesystem does not have largefile support") return f -- Repository URL: http://hg.python.org/cpython