From: Jason Kirtland Date: Tue, 31 Mar 2009 21:57:23 +0000 (+0000) Subject: And added this one X-Git-Tag: rel_0_6_6~239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b458a891fc70388b674cc8ad0b5a537df7f77243;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git And added this one --- 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