[Python-checkins] CVS: python/dist/src/Lib/test test_struct.py,1.12,1.13
Tim Peters
tim_one@users.sourceforge.net
Mon, 18 Jun 2001 15:27:41 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv9470/python/dist/src/Lib/test
Modified Files:
test_struct.py
Log Message:
Added "i" and "l" to the list of std-mode struct codes that don't range-
check correctly on pack(). While these were checking OK on my 32-bit box,
Mark Favas reported failures on a 64-bit box (alas, easy to believe).
Index: test_struct.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_struct.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** test_struct.py 2001/06/13 22:45:27 1.12
--- test_struct.py 2001/06/18 22:27:39 1.13
***************
*** 189,193 ****
# XXX Most std integer modes fail to test for out-of-range.
! BUGGY_RANGE_CHECK = "bBhHIL"
def __init__(self, formatpair, bytesize):
--- 189,196 ----
# XXX Most std integer modes fail to test for out-of-range.
! # The "i" and "l" codes appear to range-check OK on 32-bit boxes, but
! # fail to check correctly on some 64-bit ones (Tru64 Unix + Compaq C
! # reported by Mark Favas).
! BUGGY_RANGE_CHECK = "bBhHiIlL"
def __init__(self, formatpair, bytesize):