From 4327521688baf21f67b134a21cb6398d6b72967f Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 20 Jun 2003 18:41:26 +0000 Subject: Added regression test for SF #757818 --- Lib/test/test_compile.py | 5 +++++ 1 file changed, 5 insertions(+) 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" -- cgit v0.12