Commit 7420b702 authored by Nadeem Vawda's avatar Nadeem Vawda

Fix potential resource leak in test_mmap.

parent 909f6d2f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment