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

Skip to content

Commit 15b3752

Browse files
committed
Fix for x86
1 parent 0efa143 commit 15b3752

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_capi/test_long.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def test_long_asnativebytes(self):
503503
(255, b'\xff', 2),
504504
(255, b'\x00\xff', 2),
505505
(256, b'\x01\x00', 2),
506-
(0x80, b'\x00' * 7 + b'\x80', 8),
506+
(0x80, b'\x00' * 7 + b'\x80', min(8, SZ)),
507507
# Extracts successfully (unsigned), but requests 9 bytes
508508
(2**63, b'\x80' + b'\x00' * 7, 9),
509509
(2**63, b'\x00\x80' + b'\x00' * 7, 9),

0 commit comments

Comments
 (0)