From: Mike Bayer Date: Sat, 17 Jan 2009 17:04:51 +0000 (+0000) Subject: explicit rollback to get the connection back to the pool X-Git-Tag: rel_0_5_1~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ac277015589cd360c0dcf55d495247e811819a1;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git explicit rollback to get the connection back to the pool --- diff --git a/test/profiling/memusage.py b/test/profiling/memusage.py index 3e5db8ae42..71d81d8634 100644 --- a/test/profiling/memusage.py +++ b/test/profiling/memusage.py @@ -330,8 +330,9 @@ class MemUsageTest(EnsureZeroed): @profile_memory def go(): s = table2.select() - session().query(Foo).join((s, Foo.bars)).all() - + sess = session() + sess.query(Foo).join((s, Foo.bars)).all() + sess.rollback() try: go() finally: