[pypy-commit] pypy default: do a better job of avoiding garbage for test_13_genexp, py3k noticed more of it

pjenvey pypy.commits at gmail.com
Sat May 14 14:21:27 EDT 2016


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: 
Changeset: r84432:c4c19a588369
Date: 2016-05-14 11:18 -0700
http://bitbucket.org/pypy/pypy/changeset/c4c19a588369/

Log:	do a better job of avoiding garbage for test_13_genexp, py3k noticed
	more of it after use-gc-del-3's destructor changes

diff --git a/lib-python/2.7/test/test_sys_settrace.py b/lib-python/2.7/test/test_sys_settrace.py
--- a/lib-python/2.7/test/test_sys_settrace.py
+++ b/lib-python/2.7/test/test_sys_settrace.py
@@ -328,8 +328,8 @@
 
     def test_13_genexp(self):
         if self.using_gc:
+            gc.enable()
             test_support.gc_collect()
-            gc.enable()
         try:
             self.run_test(generator_example)
             # issue1265: if the trace function contains a generator,


More information about the pypy-commit mailing list