Commits

Philip Jenvey  committed 96be871

use gc_collect from test_support

  • Participants
  • Parent commits 0fa3dc3

Comments (0)

Files changed (1)

File lib-python/2.7/test/test_generators.py

 """
 
 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:
 
 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():