[Python-checkins] CVS: python/dist/src/Lib/test test_descr.py,1.69,1.70
Guido van Rossum
gvanrossum@users.sourceforge.net
Mon, 24 Sep 2001 09:04:01 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv24518/Lib/test
Modified Files:
test_descr.py
Log Message:
Fix the baffler that Tim reported: sometimes the repr() of an object
looks like <X object at ...>, sometimes it says <X instance at ...>.
Make this uniformly say <X object at ...>.
Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.69
retrieving revision 1.70
diff -C2 -d -r1.69 -r1.70
*** test_descr.py 2001/09/21 21:24:49 1.69
--- test_descr.py 2001/09/24 16:03:59 1.70
***************
*** 1194,1198 ****
# Note that the module name appears in str/repr, and that varies
# depending on whether this test is run standalone or from a framework.
! verify(str(c1).find('C instance at ') >= 0)
verify(str(c1) == repr(c1))
verify(-1 not in c1)
--- 1194,1198 ----
# Note that the module name appears in str/repr, and that varies
# depending on whether this test is run standalone or from a framework.
! verify(str(c1).find('C object at ') >= 0)
verify(str(c1) == repr(c1))
verify(-1 not in c1)
***************
*** 1217,1221 ****
# Note that the module name appears in str/repr, and that varies
# depending on whether this test is run standalone or from a framework.
! verify(str(d1).find('D instance at ') >= 0)
verify(str(d1) == repr(d1))
verify(-1 not in d1)
--- 1217,1221 ----
# Note that the module name appears in str/repr, and that varies
# depending on whether this test is run standalone or from a framework.
! verify(str(d1).find('D object at ') >= 0)
verify(str(d1) == repr(d1))
verify(-1 not in d1)