diff options
author | Guido van Rossum <guido@python.org> | 2001-04-10 14:50:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-04-10 14:50:51 (GMT) |
commit | a5af2148ee7941a033f3ecbc73bc180061416589 (patch) | |
tree | 790f2685787a3091523ec4c523d7120383cef3e0 /Lib | |
parent | bfce016a30da85c4a637ab4825e429da482a80c0 (diff) | |
download | cpython-a5af2148ee7941a033f3ecbc73bc180061416589.zip cpython-a5af2148ee7941a033f3ecbc73bc180061416589.tar.gz cpython-a5af2148ee7941a033f3ecbc73bc180061416589.tar.bz2 |
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!
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_largefile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_largefile.py b/Lib/test/test_largefile.py index 58de293..1b404b6 100644 --- a/Lib/test/test_largefile.py +++ b/Lib/test/test_largefile.py @@ -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, \ |