diff options
Diffstat (limited to 'test/orm/unitofwork.py')
-rw-r--r-- | test/orm/unitofwork.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/orm/unitofwork.py b/test/orm/unitofwork.py index 293021b2c..765c360c9 100644 --- a/test/orm/unitofwork.py +++ b/test/orm/unitofwork.py @@ -13,7 +13,7 @@ from testlib import tables class UnitOfWorkTest(AssertMixin): def setUpAll(self): global Session - Session = sessionmaker(autoflush=True, transactional=True, enhance_classes=True, scope="thread") + Session = scoped_session(sessionmaker(autoflush=True, transactional=True), enhance_classes=True) def tearDownAll(self): global_extensions[:] = [] def tearDown(self): |