Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit e8d58d1

Browse files
author
Martin Panter
committed
Issue python#25004: Handle out-of-disk-space error in LargeMmapTests
Patch from John Beck.
1 parent 7f02d6d commit e8d58d1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Lib/test/test_mmap.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,10 @@ def _make_test_file(self, num_zeroes, tail):
727727
f.write(tail)
728728
f.flush()
729729
except (OSError, OverflowError):
730-
f.close()
730+
try:
731+
f.close()
732+
except (OSError, OverflowError):
733+
pass
731734
raise unittest.SkipTest("filesystem does not have largefile support")
732735
return f
733736

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Mike Bayer
100100
Samuel L. Bayer
101101
Donald Beaudry
102102
David Beazley
103+
John Beck
103104
Neal Becker
104105
Robin Becker
105106
Torsten Becker

0 commit comments

Comments
 (0)