Mike Bayer committed 14ac187

- adjust gc_collect for pypy

Comments (0)

Files changed (2)

     # "lazy" gc, for VM's that don't GC on refcount == 0
     lazy_gc = gc_collect
 elif pypy:
-    lazy_gc = gc_collect = gc.collect
+    def gc_collect(*args):
+        gc.collect()
+        gc.collect()
+    lazy_gc = gc_collect
     # assume CPython - straight gc.collect, lazy_gc() is a pass
     gc_collect = gc.collect


 from test.lib.schema import Table, Column
 from sqlalchemy.orm import mapper, relationship, backref, joinedload, \
     exc as orm_exc, object_session
+from sqlalchemy.util import pypy
 from test.engine import _base as engine_base
 from test.orm import _base, _fixtures
         eq_(, [(, 'u2')])
+    @testing.fails_if(lambda: pypy, "pypy has a real GC")
     @testing.fails_on('+zxjdbc', '')
     def test_prune(self):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.