[pypy-commit] pypy py3k: One more collect() to fix the test.

amauryfa noreply at buildbot.pypy.org
Mon Oct 22 00:34:18 CEST 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r58345:084eca8026f9
Date: 2012-10-21 12:52 +0200
http://bitbucket.org/pypy/pypy/changeset/084eca8026f9/

Log:	One more collect() to fix the test.

diff --git a/lib-python/3.2/test/test_weakref.py b/lib-python/3.2/test/test_weakref.py
--- a/lib-python/3.2/test/test_weakref.py
+++ b/lib-python/3.2/test/test_weakref.py
@@ -849,6 +849,7 @@
         del items1, items2
         self.assertEqual(len(dict), self.COUNT)
         del objects[0]
+        gc_collect()
         self.assertEqual(len(dict), self.COUNT - 1,
                      "deleting object did not cause dictionary update")
         del objects, o


More information about the pypy-commit mailing list