[Python-checkins] python/dist/src/Lib/test test_compile.py,1.12,1.13

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Tue, 28 Jan 2003 09:48:24 -0800


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

Modified Files:
	test_compile.py 
Log Message:
Verify treatment of unary minus on negative numbers SF bug #660455.


Index: test_compile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_compile.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_compile.py	23 Jul 2002 19:03:46 -0000	1.12
--- test_compile.py	28 Jan 2003 17:48:21 -0000	1.13
***************
*** 133,134 ****
--- 133,141 ----
  expect_same("000000000000008.", 8.)
  expect_same("000000000000009.", 9.)
+ 
+ # Verify treatment of unary minus on negative numbers SF bug #660455
+ import warnings
+ warnings.filterwarnings("ignore", "hex/oct constants", FutureWarning)
+ # XXX Of course the following test will have to be changed in Python 2.4
+ expect_same("0xffffffff", -1)
+ expect_same("-0xffffffff", 1)