Mailing List Archive

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

Modified Files:
test_descr.py
Log Message:
More bug 460020. When I is a subclass of int, disable the +I(whatever),
I(0) << whatever, I(0) >> whatever, I(whatever) << 0 and I(whatever) >> 0
optimizations.


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** test_descr.py 2001/09/11 19:48:03 1.41
--- test_descr.py 2001/09/11 21:44:14 1.42
***************
*** 1367,1370 ****
--- 1367,1375 ----
verify(int(a) == 12345)
verify(int(a).__class__ is int)
+ verify((+a).__class__ is int)
+ verify((a >> 0).__class__ is int)
+ verify((a << 0).__class__ is int)
+ verify((hexint(0) << 12).__class__ is int)
+ verify((hexint(0) >> 12).__class__ is int)

class octlong(long):