]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
When doing the quick test to see whether large files are supported,
authorGuido van Rossum <guido@python.org>
Tue, 10 Apr 2001 14:50:51 +0000 (14:50 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 10 Apr 2001 14:50:51 +0000 (14:50 +0000)
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!

Lib/test/test_largefile.py

index 58de293f3ddfef329088cf80007cc7796dfd0292..1b404b6fdc9fcd0d1ad07a37cfe195d0c47f5200 100644 (file)
@@ -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, \