[pypy-commit] pypy py3k: add gc_collects

pjenvey noreply at buildbot.pypy.org
Tue Nov 13 21:04:47 CET 2012


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r58860:0c9ca5618ae8
Date: 2012-11-13 12:04 -0800
http://bitbucket.org/pypy/pypy/changeset/0c9ca5618ae8/

Log:	add gc_collects

diff --git a/lib-python/3.2/test/test_exceptions.py b/lib-python/3.2/test/test_exceptions.py
--- a/lib-python/3.2/test/test_exceptions.py
+++ b/lib-python/3.2/test/test_exceptions.py
@@ -498,6 +498,7 @@
             e.__context__ = None
             obj = None
             obj = wr()
+            gc_collect()
             self.assertTrue(obj is None, "%s" % obj)
 
         # Some complicated construct
@@ -514,6 +515,7 @@
             except MyException:
                 pass
         obj = None
+        gc_collect()
         obj = wr()
         self.assertTrue(obj is None, "%s" % obj)
 
@@ -528,6 +530,7 @@
         with Context():
             inner_raising_func()
         obj = None
+        gc_collect()
         obj = wr()
         self.assertTrue(obj is None, "%s" % obj)
 


More information about the pypy-commit mailing list