[pypy-commit] pypy default: use gc_collect from test_support

pjenvey noreply at buildbot.pypy.org
Wed Feb 13 22:28:38 CET 2013


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: 
Changeset: r61213:96be871fc24b
Date: 2013-02-13 13:27 -0800
http://bitbucket.org/pypy/pypy/changeset/96be871fc24b/

Log:	use gc_collect from test_support

diff --git a/lib-python/2.7/test/test_generators.py b/lib-python/2.7/test/test_generators.py
--- a/lib-python/2.7/test/test_generators.py
+++ b/lib-python/2.7/test/test_generators.py
@@ -1501,9 +1501,7 @@
 """
 
 coroutine_tests = """\
-A helper function to call gc.collect() without printing
->>> import gc
->>> def gc_collect(): gc.collect()
+>>> from test.test_support import gc_collect
 
 Sending a value into a started generator:
 
@@ -1823,8 +1821,7 @@
 references. We add it to the standard suite so the routine refleak-tests
 would trigger if it starts being uncleanable again.
 
->>> import gc
->>> def gc_collect(): gc.collect()
+>>> from test.test_support import gc_collect
 
 >>> import itertools
 >>> def leak():


More information about the pypy-commit mailing list