]> granicus.if.org Git - python/commitdiff
remove function import
authorBenjamin Peterson <benjamin@python.org>
Sun, 31 May 2009 14:43:00 +0000 (14:43 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 31 May 2009 14:43:00 +0000 (14:43 +0000)
Lib/test/test_support.py

index 8656189a91fbedd4ce98a327f35262963feea137..6f7b2397d6fe6a90438765e216c57482d995bae7 100644 (file)
@@ -6,6 +6,7 @@ if __name__ != 'test.test_support':
 import contextlib
 import errno
 import functools
+import gc
 import socket
 import sys
 import os
@@ -644,7 +645,6 @@ def gc_collect():
     longer than expected.  This function tries its best to force all garbage
     objects to disappear.
     """
-    import gc
     gc.collect()
     gc.collect()
     gc.collect()