[pypy-svn] pypy fast-forward: gc_collect() a bit to clear weak references

amauryfa commits-noreply at bitbucket.org
Fri Jan 14 00:57:21 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40651:60817d6fb5a0
Date: 2011-01-14 00:40 +0100
http://bitbucket.org/pypy/pypy/changeset/60817d6fb5a0/

Log:	gc_collect() a bit to clear weak references

diff --git a/lib-python/modified-2.7.0/test/test_weakref.py b/lib-python/modified-2.7.0/test/test_weakref.py
--- a/lib-python/modified-2.7.0/test/test_weakref.py
+++ b/lib-python/modified-2.7.0/test/test_weakref.py
@@ -1185,6 +1185,7 @@
 >>> o is o2
 True
 >>> del o, o2
+>>> gc_collect()
 >>> print r()
 None
 
@@ -1237,6 +1238,7 @@
 >>> id2obj(a_id) is a
 True
 >>> del a
+>>> gc_collect()
 >>> try:
 ...     id2obj(a_id)
 ... except KeyError:


More information about the Pypy-commit mailing list