summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_compile.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py
index 2281b37..f038249 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"