summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2011-05-07 14:34:22 +0200
committerNadeem Vawda <nadeem.vawda@gmail.com>2011-05-07 14:34:22 +0200
commit6a9182d09877ea797ab029f1c28ca9983921666f (patch)
treeb3abcccc6bf2bc83325db3bd59d2e264560f1deb
parentd683b2561a9fb4a9e049a98a3072bd9b957e57c5 (diff)
downloadcpython-6a9182d09877ea797ab029f1c28ca9983921666f.tar.gz
Fix potential resource leak in test_mmap.
-rw-r--r--Lib/test/test_mmap.py1
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