From: Fred Drake Date: Mon, 22 Oct 2001 21:45:25 +0000 (+0000) Subject: Fixed denial-of-weak-ref-support test; Jeremy changed the error message X-Git-Tag: v2.2.1c1~1102 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4bf018b1383f2fb1cb1f276dbf137ea1e3f77cc4;p=thirdparty%2FPython%2Fcpython.git 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? --- diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index d7a06447e5ef..30b048130661 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -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):