From: Mike Bayer Date: Tue, 14 Aug 2007 03:47:15 +0000 (+0000) Subject: attempt to get SessionTest to close transactions better X-Git-Tag: rel_0_4beta2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0a383f8bf5ce315245d177a55f99da336d00998;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git attempt to get SessionTest to close transactions better --- diff --git a/test/orm/session.py b/test/orm/session.py index 8e12b819d0..1e9319ef3f 100644 --- a/test/orm/session.py +++ b/test/orm/session.py @@ -1,6 +1,7 @@ import testbase from sqlalchemy import * from sqlalchemy.orm import * +from sqlalchemy.orm.session import Session as SessionCls from testlib import * from testlib.tables import * import testlib.tables as tables @@ -12,6 +13,7 @@ class SessionTest(AssertMixin): def tearDownAll(self): tables.drop() def tearDown(self): + SessionCls.close_all() tables.delete() clear_mappers() def setUp(self):