summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_struct.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-06-18 22:27:39 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-06-18 22:27:39 (GMT)
commit3eec38af37d4593a6ce7a406de3b20d6c2b322f2 (patch)
tree921d6a51704b7f9f65fceb728c2e07bf629df564 /Lib/test/test_struct.py
parent5ca576ed0a0c697c7e7547adfd0b3af010fd2053 (diff)
downloadcpython-3eec38af37d4593a6ce7a406de3b20d6c2b322f2.zip
cpython-3eec38af37d4593a6ce7a406de3b20d6c2b322f2.tar.gz
cpython-3eec38af37d4593a6ce7a406de3b20d6c2b322f2.tar.bz2
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).
Diffstat (limited to 'Lib/test/test_struct.py')
-rw-r--r--Lib/test/test_struct.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py
index f7ad094..0f3ac91 100644
--- a/Lib/test/test_struct.py
+++ b/Lib/test/test_struct.py
@@ -188,7 +188,10 @@ import binascii
class IntTester:
# XXX Most std integer modes fail to test for out-of-range.
- BUGGY_RANGE_CHECK = "bBhHIL"
+ # 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):
assert len(formatpair) == 2