From: Raymond Hettinger Date: Fri, 20 Jun 2003 18:41:26 +0000 (+0000) Subject: Added regression test for SF #757818 X-Git-Tag: v2.3c1~357 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4327521688baf21f67b134a21cb6398d6b72967f;p=python Added regression test for SF #757818 --- diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py index 2281b37691..f038249516 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"