diff options
Diffstat (limited to 'lib/sqlalchemy/testing/fixtures.py')
-rw-r--r-- | lib/sqlalchemy/testing/fixtures.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/testing/fixtures.py b/lib/sqlalchemy/testing/fixtures.py index 64d9328d7..953b229f2 100644 --- a/lib/sqlalchemy/testing/fixtures.py +++ b/lib/sqlalchemy/testing/fixtures.py @@ -246,7 +246,7 @@ class RemovesEvents(object): class _ORMTest(object): @classmethod def teardown_class(cls): - sa.orm.session.Session.close_all() + sa.orm.session.close_all_sessions() sa.orm.clear_mappers() @@ -287,7 +287,7 @@ class MappedTest(_ORMTest, TablesTest, assertions.AssertsExecutionResults): self._setup_each_inserts() def teardown(self): - sa.orm.session.Session.close_all() + sa.orm.session.close_all_sessions() self._teardown_each_mappers() self._teardown_each_classes() self._teardown_each_tables() |