aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-10-22 21:45:25 +0000
committerFred Drake <fdrake@acm.org>2001-10-22 21:45:25 +0000
commit4bf018b1383f2fb1cb1f276dbf137ea1e3f77cc4 (patch)
tree7afd828e8b76ff96e51e3702d0ad43727d42ee55 /Lib/test
parent6de22ef6778c31b3bb06bd05c29207ac0aa86196 (diff)
downloadcpython-4bf018b1383f2fb1cb1f276dbf137ea1e3f77cc4.tar.gz
cpython-4bf018b1383f2fb1cb1f276dbf137ea1e3f77cc4.zip
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?
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_descr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index d7a06447e5e..30b04813066 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):