[Python-checkins] CVS: python/dist/src/Lib/test test_descr.py,1.92,1.93
Fred L. Drake
fdrake@users.sourceforge.net
Mon, 22 Oct 2001 14:45:27 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv20755
Modified Files:
test_descr.py
Log Message:
Fixed denial-of-weak-ref-support test; Jeremy changed the error message
used by the weakref code since he didn't like the word "referencable".
Is it really necessary to be more specific than to test for TypeError here,
though?
Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.92
retrieving revision 1.93
diff -C2 -d -r1.92 -r1.93
*** test_descr.py 2001/10/22 00:43:43 1.92
--- test_descr.py 2001/10/22 21:45:25 1.93
***************
*** 1375,1379 ****
weakref.ref(no)
except TypeError, msg:
! verify(str(msg).find("weakly") >= 0)
else:
verify(0, "weakref.ref(no) should be illegal")
--- 1375,1379 ----
weakref.ref(no)
except TypeError, msg:
! verify(str(msg).find("weak reference") >= 0)
else:
verify(0, "weakref.ref(no) should be illegal")