Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0b0579

Browse files
committed
Merge: Fix potential resource leak in test_mmap.
2 parents 044dfad + 7420b70 commit b0b0579

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_mmap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@ def _make_test_file(self, num_zeroes, tail):
673673
f.write(tail)
674674
f.flush()
675675
except (IOError, OverflowError):
676+
f.close()
676677
raise unittest.SkipTest("filesystem does not have largefile support")
677678
return f
678679

0 commit comments

Comments
 (0)