mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
When doing the quick test to see whether large files are supported,
catch IOError as well as OverflowError. I found that on Tru64 Unix this was raised; probably because the OS (or libc) doesn't support large files but the architecture is 64 bits!
This commit is contained in:
parent
bfce016a30
commit
a5af2148ee
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ f = open(test_support.TESTFN, 'w')
|
|||
try:
|
||||
# 2**31 == 2147483648
|
||||
f.seek(2147483649L)
|
||||
except OverflowError:
|
||||
except (IOError, OverflowError):
|
||||
f.close()
|
||||
os.unlink(test_support.TESTFN)
|
||||
raise test_support.TestSkipped, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue