adjust gc_collect for Jython
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index 75daacb..d76d569 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -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):