summaryrefslogtreecommitdiff
path: root/test/lib/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/util.py')
-rw-r--r--test/lib/util.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lib/util.py b/test/lib/util.py
index 2597148ac..e8a10c65a 100644
--- a/test/lib/util.py
+++ b/test/lib/util.py
@@ -17,7 +17,10 @@ if jython:
# "lazy" gc, for VM's that don't GC on refcount == 0
lazy_gc = gc_collect
elif pypy:
- lazy_gc = gc_collect = gc.collect
+ def gc_collect(*args):
+ gc.collect()
+ gc.collect()
+ lazy_gc = gc_collect
else:
# assume CPython - straight gc.collect, lazy_gc() is a pass
gc_collect = gc.collect