Fix potential resource leak in test_mmap.

This commit is contained in:
Nadeem Vawda 2011-05-07 14:35:05 +02:00
parent 909f6d2fba
commit 7420b70240
1 changed files with 1 additions and 0 deletions

View File

@ -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