mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Added regression test for SF #757818
This commit is contained in:
parent
3a03de4a27
commit
4327521688
1 changed files with 5 additions and 0 deletions
|
|
@ -156,3 +156,8 @@ exec """
|
|||
expect_same(all_one_bits, -1)
|
||||
expect_same("-" + all_one_bits, 1)
|
||||
"""
|
||||
|
||||
# Verify sequence packing/unpacking with "or". SF bug #757818
|
||||
i,j = (1, -1) or (-1, 1)
|
||||
if i != 1 or j != -1:
|
||||
raise TestFailed, "Sequence packing/unpacking"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue