]> granicus.if.org Git - python/commitdiff
Fixed denial-of-weak-ref-support test; Jeremy changed the error message
authorFred Drake <fdrake@acm.org>
Mon, 22 Oct 2001 21:45:25 +0000 (21:45 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 22 Oct 2001 21:45:25 +0000 (21:45 +0000)
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?

Lib/test/test_descr.py

index d7a06447e5efb131a416cbf9798aa61cd75fbe2b..30b04813066150edbb137fe08b8e592b8fe701c6 100644 (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):