[Python-checkins] CVS: python/dist/src/Lib/test test_descr.py,1.62,1.63
Tim Peters
tim_one@users.sourceforge.net
Tue, 18 Sep 2001 14:24:20 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv5498/python/Lib/test
Modified Files:
test_descr.py
Log Message:
Enable some comparison tests that failed before. Still having problems
with subsclasses of complex and string.
Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -d -r1.62 -r1.63
*** test_descr.py 2001/09/18 21:06:04 1.62
--- test_descr.py 2001/09/18 21:24:18 1.63
***************
*** 1417,1421 ****
verify(repr(hexint(1000) + 7) == "0x3ef")
a = hexint(12345)
! #XXX verify(a == 12345)
verify(int(a) == 12345)
verify(int(a).__class__ is int)
--- 1417,1421 ----
verify(repr(hexint(1000) + 7) == "0x3ef")
a = hexint(12345)
! verify(a == 12345)
verify(int(a) == 12345)
verify(int(a).__class__ is int)
***************
*** 1442,1446 ****
verify(str(5 + octlong(3000)) == "05675")
a = octlong(12345)
! #XXX verify(a == 12345L)
verify(long(a) == 12345L)
verify(hash(a) == hash(12345L))
--- 1442,1446 ----
verify(str(5 + octlong(3000)) == "05675")
a = octlong(12345)
! verify(a == 12345L)
verify(long(a) == 12345L)
verify(hash(a) == hash(12345L))
***************
*** 1480,1484 ****
verify(repr(precfloat(1.1)) == "1.1")
a = precfloat(12345)
! #XXX verify(a == 12345.0)
verify(float(a) == 12345.0)
verify(float(a).__class__ is float)
--- 1480,1484 ----
verify(repr(precfloat(1.1)) == "1.1")
a = precfloat(12345)
! verify(a == 12345.0)
verify(float(a) == 12345.0)
verify(float(a).__class__ is float)