server/test/unittest_repository.py
changeset 4835 13b0b96d7982
parent 4808 23df4a120c96
child 4913 083b4d454192
--- a/server/test/unittest_repository.py	Mon Mar 08 19:02:35 2010 +0100
+++ b/server/test/unittest_repository.py	Tue Mar 09 08:59:43 2010 +0100
@@ -184,7 +184,9 @@
         repo = self.repo
         cnxid = repo.connect(self.admlogin, password=self.admpassword)
         # rollback state change which trigger TrInfo insertion
-        user = repo._get_session(cnxid).user
+        session = repo._get_session(cnxid)
+        session.set_pool()
+        user = session.user
         user.fire_transition('deactivate')
         rset = repo.execute(cnxid, 'TrInfo T WHERE T wf_info_for X, X eid %(x)s', {'x': user.eid})
         self.assertEquals(len(rset), 1)