Author: Armin Rigo <[email protected]>
Branch: gc-del
Changeset: r66061:c81cc58efba0
Date: 2013-08-10 19:43 +0200
http://bitbucket.org/pypy/pypy/changeset/c81cc58efba0/
Log: Failing test
diff --git a/pypy/objspace/std/test/test_mapdict.py
b/pypy/objspace/std/test/test_mapdict.py
--- a/pypy/objspace/std/test/test_mapdict.py
+++ b/pypy/objspace/std/test/test_mapdict.py
@@ -654,6 +654,20 @@
del a.x
raises(AttributeError, "a.x")
+ def test_del(self):
+ class A(object):
+ def __del__(self):
+ seen.append(1)
+ seen = []
+ a = ()
+ del a
+ for i in range(5):
+ if not seen:
+ import gc
+ gc.collect()
+ assert seen == [1]
+
+
class AppTestWithMapDictAndCounters(object):
spaceconfig = {"objspace.std.withmapdict": True,
"objspace.std.withmethodcachecounter": True,
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit