Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3eec38a

Browse files
committed
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).
1 parent 5ca576e commit 3eec38a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/test/test_struct.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ def test_native_qQ():
188188
class IntTester:
189189

190190
# XXX Most std integer modes fail to test for out-of-range.
191-
BUGGY_RANGE_CHECK = "bBhHIL"
191+
# The "i" and "l" codes appear to range-check OK on 32-bit boxes, but
192+
# fail to check correctly on some 64-bit ones (Tru64 Unix + Compaq C
193+
# reported by Mark Favas).
194+
BUGGY_RANGE_CHECK = "bBhHiIlL"
192195

193196
def __init__(self, formatpair, bytesize):
194197
assert len(formatpair) == 2

0 commit comments

Comments
 (0)