[Python-checkins] cpython (merge 3.1 -> 3.2): Merge: Fix potential resource leak in test_mmap.
nadeem.vawda
python-checkins at python.org
Sat May 7 14:38:22 CEST 2011
http://hg.python.org/cpython/rev/26bee6e91c1e
changeset: 69900:26bee6e91c1e
branch: 3.2
parent: 69896:a9da17fcb564
parent: 69899:c32b3aceeb84
user: Nadeem Vawda <nadeem.vawda at gmail.com>
date: Sat May 07 14:35:36 2011 +0200
summary:
Merge: 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
@@ -673,6 +673,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
More information about the Python-checkins
mailing list