From: Mike Bayer Date: Mon, 30 Nov 2015 02:50:50 +0000 (-0500) Subject: - close the session X-Git-Tag: rel_1_0_10~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4fa1345ffe90712ccc36a86ba0e5a8979278744;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - close the session (cherry picked from commit 4fcd93afb877ec8929586c2d7b671aef1783d883) --- diff --git a/test/ext/test_baked.py b/test/ext/test_baked.py index b3e4f16529..468f98918e 100644 --- a/test/ext/test_baked.py +++ b/test/ext/test_baked.py @@ -280,6 +280,7 @@ class LikeQueryTest(BakedTest): sess = Session() u1 = bq(sess).get(7) eq_(u1.name, 'jack') + sess.close() eq_(len(bq._bakery), 2) @@ -292,6 +293,7 @@ class LikeQueryTest(BakedTest): sess = Session() u1 = bq(sess).get(7) eq_(u1.name, 'jack') + sess.close() eq_(len(bq._bakery), 4)