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?
This commit is contained in:
Fred Drake 2001-10-22 21:45:25 +00:00
parent 6de22ef677
commit 4bf018b138

View file

@ -1374,7 +1374,7 @@ def weakrefs():
try:
weakref.ref(no)
except TypeError, msg:
verify(str(msg).find("weakly") >= 0)
verify(str(msg).find("weak reference") >= 0)
else:
verify(0, "weakref.ref(no) should be illegal")
class Weak(object):