mirror of
https://github.com/python/cpython.git
synced 2026-03-18 02:40:53 +00:00
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:
parent
6de22ef677
commit
4bf018b138
1 changed files with 1 additions and 1 deletions
|
|
@ -1374,7 +1374,7 @@ class NoWeak(object):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue