Mailing List Archive

CVS: python/dist/src/Lib/test test_descr.py,1.42,1.43
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv19643/python/Lib/test

Modified Files:
test_descr.py
Log Message:
More bug 460020: when F is a subclass of float, disable the unary plus
optimization (+F(whatever)).


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** test_descr.py 2001/09/11 21:44:14 1.42
--- test_descr.py 2001/09/11 21:53:35 1.43
***************
*** 1402,1405 ****
--- 1402,1406 ----
verify(float(a) == 12345.0)
verify(float(a).__class__ is float)
+ verify((+a).__class__ is float)

class madtuple(tuple):