]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
explicit rollback to get the connection back to the pool
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 17 Jan 2009 17:04:51 +0000 (17:04 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 17 Jan 2009 17:04:51 +0000 (17:04 +0000)
test/profiling/memusage.py

index 3e5db8ae42abdaf6483810d89aa5f3645af9f555..71d81d8634ddfa1c6a6bdbfe8622bf7573c11b27 100644 (file)
@@ -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: