From 3510e38a772a2e48a8bb4b0a4efc6479034f649e Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 15 Oct 2012 14:10:09 -0400 Subject: fix for pypy/jython gc_collect --- lib/sqlalchemy/testing/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/testing/util.py') diff --git a/lib/sqlalchemy/testing/util.py b/lib/sqlalchemy/testing/util.py index a02053dfb..41b0a30b3 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 -- cgit v1.2.1