diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-08-14 03:47:15 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-08-14 03:47:15 +0000 |
| commit | f0a383f8bf5ce315245d177a55f99da336d00998 (patch) | |
| tree | 8bd0ca2cc6a335498cdee616ba7ec009005a7c55 | |
| parent | 6c6cd47c024c5ea2cada04534aca818f95b8ea8c (diff) | |
| download | sqlalchemy-f0a383f8bf5ce315245d177a55f99da336d00998.tar.gz | |
attempt to get SessionTest to close transactions better
| -rw-r--r-- | test/orm/session.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/orm/session.py b/test/orm/session.py index 8e12b819d..1e9319ef3 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): |
