diff options
author | Michael Trier <mtrier@gmail.org> | 2011-03-08 23:40:59 -0500 |
---|---|---|
committer | Michael Trier <mtrier@gmail.org> | 2011-03-08 23:40:59 -0500 |
commit | a1288bf78f887aeef890e4e6cc0f769f4d6a81f5 (patch) | |
tree | bf612f0f62afbf929126e324305aae01abc4b2f6 /test/lib/util.py | |
parent | 438c31e6d50b5eb51920429a4ac61e84eed8828d (diff) | |
download | sqlalchemy-a1288bf78f887aeef890e4e6cc0f769f4d6a81f5.tar.gz |
Modifications for PyPy support from Alex Gaynor.
Diffstat (limited to 'test/lib/util.py')
-rw-r--r-- | test/lib/util.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lib/util.py b/test/lib/util.py index b512cf6b0..2597148ac 100644 --- a/test/lib/util.py +++ b/test/lib/util.py @@ -1,4 +1,4 @@ -from sqlalchemy.util import jython, defaultdict, decorator +from sqlalchemy.util import jython, pypy, defaultdict, decorator from sqlalchemy.util.compat import decimal import gc @@ -16,7 +16,8 @@ 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 else: # assume CPython - straight gc.collect, lazy_gc() is a pass gc_collect = gc.collect |