diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py index 2281b376915..f038249516f 100644 --- a/Lib/test/test_compile.py +++ b/Lib/test/test_compile.py @@ -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"