Added regression test for SF #757818

This commit is contained in:
Raymond Hettinger 2003-06-20 18:41:26 +00:00
parent 3a03de4a27
commit 4327521688
1 changed files with 5 additions and 0 deletions

View File

@ -156,3 +156,8 @@ exec """
expect_same(all_one_bits, -1) expect_same(all_one_bits, -1)
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"