From: Mike Bayer Date: Mon, 15 Oct 2012 18:10:09 +0000 (-0400) Subject: fix for pypy/jython gc_collect X-Git-Tag: rel_0_8_0b1~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3510e38a772a2e48a8bb4b0a4efc6479034f649e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix for pypy/jython gc_collect --- diff --git a/lib/sqlalchemy/testing/util.py b/lib/sqlalchemy/testing/util.py index a02053dfb5..41b0a30b39 100644 --- a/lib/sqlalchemy/testing/util.py +++ b/lib/sqlalchemy/testing/util.py @@ -17,12 +17,12 @@ if jython: return 0 # "lazy" gc, for VM's that don't GC on refcount == 0 - lazy_gc = jython_gc_collect + gc_collect = lazy_gc = jython_gc_collect elif pypy: def pypy_gc_collect(*args): gc.collect() gc.collect() - lazy_gc = pypy_gc_collect + gc_collect = lazy_gc = pypy_gc_collect else: # assume CPython - straight gc.collect, lazy_gc() is a pass gc_collect = gc.collect