summaryrefslogtreecommitdiff
path: root/test/orm/unitofwork.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-08-02 05:42:49 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-08-02 05:42:49 +0000
commitb8b51fe4379936fe142c875ea0f17da14a12c27d (patch)
tree987fc4033cad747f0decfa80e38708a13d812d4c /test/orm/unitofwork.py
parent9f23ec7423e98305f43a0b7a7ef894da74325329 (diff)
downloadsqlalchemy-b8b51fe4379936fe142c875ea0f17da14a12c27d.tar.gz
- sessionmaker module is out, replaced with simple function in session.py
- scoping/class instrumenting behavior of sessionmaker moved into new scoping module which implements scoped_session() (subject to potential name change) - SessionContext / assignmapper are deprecated, replaced with scoped_session()
Diffstat (limited to 'test/orm/unitofwork.py')
-rw-r--r--test/orm/unitofwork.py2
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):