diff options
author | Raymond Hettinger <python@rcn.com> | 2003-06-20 18:41:26 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-06-20 18:41:26 (GMT) |
commit | 4327521688baf21f67b134a21cb6398d6b72967f (patch) | |
tree | 9c54b7d3995baf7eaf09c08cdcb1c3edc9ffb916 /Lib | |
parent | 3a03de4a27012bb93e8d4e776ad3bc6a07335e10 (diff) | |
download | cpython-4327521688baf21f67b134a21cb6398d6b72967f.zip cpython-4327521688baf21f67b134a21cb6398d6b72967f.tar.gz cpython-4327521688baf21f67b134a21cb6398d6b72967f.tar.bz2 |
Added regression test for SF #757818
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_compile.py | 5 |
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" |