summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2011-05-07 12:34:22 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2011-05-07 12:34:22 (GMT)
commit5ae6c42f52c650dc317dd5f0ecab8d5087c44872 (patch)
tree8ef897e1dc1e58fab686d1cf301bf0f614b92375
parentd0a8f160312efb33cb709e5db22cdd605a889c7f (diff)
downloadcpython-5ae6c42f52c650dc317dd5f0ecab8d5087c44872.zip
cpython-5ae6c42f52c650dc317dd5f0ecab8d5087c44872.tar.gz
cpython-5ae6c42f52c650dc317dd5f0ecab8d5087c44872.tar.bz2
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 a87e6ae..2c2863e 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