[Python-checkins] python/dist/src/Lib/test test_compile.py,1.17,1.18

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Fri, 20 Jun 2003 11:41:29 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv9926

Modified Files:
	test_compile.py 
Log Message:
Added regression test for SF #757818

Index: test_compile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_compile.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** test_compile.py	18 Feb 2003 15:22:09 -0000	1.17
--- test_compile.py	20 Jun 2003 18:41:26 -0000	1.18
***************
*** 157,158 ****
--- 157,163 ----
  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"