Kaydet (Commit) 4bf018b1 authored tarafından Fred Drake's avatar Fred Drake

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?
üst 6de22ef6
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment