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

Skip to content

Commit 8ec1175

Browse files
Issue #26927: Fixed test_mmap on platforms with 32-bit off_t (like Android).
Patch by Xavier de Gaye.
2 parents 9fa149d + 05d3921 commit 8ec1175

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_mmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ def _make_test_file(self, num_zeroes, tail):
738738
f.seek(num_zeroes)
739739
f.write(tail)
740740
f.flush()
741-
except (OSError, OverflowError):
741+
except (OSError, OverflowError, ValueError):
742742
try:
743743
f.close()
744744
except (OSError, OverflowError):

0 commit comments

Comments
 (0)