From b458a891fc70388b674cc8ad0b5a537df7f77243 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Tue, 31 Mar 2009 21:57:23 +0000 Subject: [PATCH] And added this one --- test/testlib/sa_gc.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/testlib/sa_gc.py diff --git a/test/testlib/sa_gc.py b/test/testlib/sa_gc.py new file mode 100644 index 0000000000..6e18575688 --- /dev/null +++ b/test/testlib/sa_gc.py @@ -0,0 +1,14 @@ +"""Cross platform garbage collection utility""" +import gc +import sys +import time + +if sys.platform.startswith('java'): + def collect(*args): + gc.collect() + time.sleep(0.1) + gc.collect() + gc.collect() + return 0 +else: + collect = gc.collect -- 2.47.3