]> granicus.if.org Git - python/commitdiff
Added regression test for SF #757818
authorRaymond Hettinger <python@rcn.com>
Fri, 20 Jun 2003 18:41:26 +0000 (18:41 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 20 Jun 2003 18:41:26 +0000 (18:41 +0000)
Lib/test/test_compile.py

index 2281b3769155086221370a05fcbbb6cb1ad56863..f038249516f56739abf7166a9aae3c68f43aa17b 100644 (file)
@@ -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"