summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2010-04-10 19:39:07 (GMT)
committerPhilip Jenvey <pjenvey@underboss.org>2010-04-10 19:39:07 (GMT)
commitbb66973afb4bb3056709181f320d97074e4db074 (patch)
treed22aefb9fc94b1a36507ce8c74e4253da3c028a4 /Lib
parent12409067c202eaa4424e63f14266e3c4a5a9f907 (diff)
downloadcpython-bb66973afb4bb3056709181f320d97074e4db074.zip
cpython-bb66973afb4bb3056709181f320d97074e4db074.tar.gz
cpython-bb66973afb4bb3056709181f320d97074e4db074.tar.bz2
adjust gc_collect for Jython
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_support.py4
1 files changed, 3 insertions, 1 deletions
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 unittest
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 @@ def gc_collect():
objects to disappear.
"""
gc.collect()
+ if is_jython:
+ time.sleep(0.1)
gc.collect()
gc.collect()
@@ -1080,7 +1083,6 @@ def threading_setup():
def threading_cleanup(nb_threads):
import thread
- import time
_MAX_COUNT = 10
for count in range(_MAX_COUNT):