Author: Armin Rigo <[email protected]>
Branch:
Changeset: r59857:efb9453c7e81
Date: 2013-01-07 21:19 +0100
http://bitbucket.org/pypy/pypy/changeset/efb9453c7e81/
Log: This test fails when run with "pypy -A". Still trying to figure out
what's going on.
diff --git a/pypy/module/_weakref/test/test_weakref.py
b/pypy/module/_weakref/test/test_weakref.py
--- a/pypy/module/_weakref/test/test_weakref.py
+++ b/pypy/module/_weakref/test/test_weakref.py
@@ -307,6 +307,13 @@
if seen_callback:
assert seen_callback == [True, True, True]
+ def test_type_weakrefable(self):
+ import _weakref, gc
+ w = _weakref.ref(list)
+ assert w() is list
+ gc.collect()
+ assert w() is list
+
class AppTestProxy(object):
spaceconfig = dict(usemodules=('_weakref',))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit