[Python-checkins] CVS: python/dist/src/Lib/test test_largefile.py,1.3,1.4

Guido van Rossum gvanrossum@users.sourceforge.net
2001年4月10日 07:50:54 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv11789
Modified Files:
	test_largefile.py 
Log Message:
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!
Index: test_largefile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_largefile.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** test_largefile.py	2000年10月23日 17:22:07	1.3
--- test_largefile.py	2001年04月10日 14:50:51	1.4
***************
*** 17,21 ****
 # 2**31 == 2147483648
 f.seek(2147483649L)
! except OverflowError:
 f.close()
 os.unlink(test_support.TESTFN)
--- 17,21 ----
 # 2**31 == 2147483648
 f.seek(2147483649L)
! except (IOError, OverflowError):
 f.close()
 os.unlink(test_support.TESTFN)

AltStyle によって変換されたページ (->オリジナル) /