Commit 5ae6c42f authored by Nadeem Vawda's avatar Nadeem Vawda

Fix potential resource leak in test_mmap.

parent d0a8f160
......@@ -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
......
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