[Python-checkins] r79934 - python/trunk/Lib/test/test_support.py

philip.jenvey python-checkins at python.org
Sat Apr 10 21:39:08 CEST 2010


Author: philip.jenvey
Date: Sat Apr 10 21:39:07 2010
New Revision: 79934

Log:
adjust gc_collect for Jython

Modified:
   python/trunk/Lib/test/test_support.py

Modified: python/trunk/Lib/test/test_support.py
==============================================================================
--- python/trunk/Lib/test/test_support.py	(original)
+++ python/trunk/Lib/test/test_support.py	Sat Apr 10 21:39:07 2010
@@ -17,6 +17,7 @@
 import importlib
 import UserDict
 import re
+import time
 
 __all__ = ["Error", "TestFailed", "ResourceDenied", "import_module",
            "verbose", "use_resources", "max_memuse", "record_original_stdout",
@@ -791,6 +792,8 @@
     objects to disappear.
     """
     gc.collect()
+    if is_jython:
+        time.sleep(0.1)
     gc.collect()
     gc.collect()
 
@@ -1080,7 +1083,6 @@
 
 def threading_cleanup(nb_threads):
     import thread
-    import time
 
     _MAX_COUNT = 10
     for count in range(_MAX_COUNT):


More information about the Python-checkins mailing list