[pypy-svn] r78468 - pypy/trunk/lib-python/modified-2.5.2/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Fri Oct 29 15:01:44 CEST 2010
Author: cfbolz
Date: Fri Oct 29 15:01:43 2010
New Revision: 78468
Modified:
pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py
Log:
(arigo, cfbolz): we don't care that in pypy you can take weakrefs to objects
with slots without __weakref__
Modified: pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py (original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py Fri Oct 29 15:01:43 2010
@@ -2028,7 +2028,9 @@
except TypeError, msg:
verify(str(msg).find("weak reference") >= 0)
else:
- verify(0, "weakref.ref(no) should be illegal")
+ # in PyPy it is (sometimes) possible to take a weakref here
+ #verify(0, "weakref.ref(no) should be illegal")
+ pass
class Weak(object):
__slots__ = ['foo', '__weakref__']
yes = Weak()
More information about the Pypy-commit
mailing list