summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2011-05-07 12:35:05 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2011-05-07 12:35:05 (GMT)
commit7420b70240586b700f5cadfa0bbdffbbe6cb8e5a (patch)
treea3133cd5d2247052a871e3c245b9634f379a6251 /Lib/test
parent909f6d2fbaefe6d191c87f5439545a85d74f6c54 (diff)
downloadcpython-7420b70240586b700f5cadfa0bbdffbbe6cb8e5a.zip
cpython-7420b70240586b700f5cadfa0bbdffbbe6cb8e5a.tar.gz
cpython-7420b70240586b700f5cadfa0bbdffbbe6cb8e5a.tar.bz2
Fix potential resource leak in test_mmap.
Diffstat (limited to 'Lib/test')
-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 0a177c6..f7d6c6f 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