Skip to content

Commit 4290155

Browse files
committed
objint_longlong: Add regression test for improper inplace op implementation.
1 parent c070ff2 commit 4290155

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/basics/int-long.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@
3737
print(a)
3838
a >>= 1
3939
print(a)
40+
41+
# Test referential integrity of long ints
42+
a = 0x1ffffffff
43+
b = a
44+
a += 1
45+
print(a)
46+
print(b)

0 commit comments

Comments
 (0)