devtools/repotest.py
changeset 8773 21edcb0a5ed7
parent 8695 358d8bed9626
child 8809 9ee4d0c65ad2
--- a/devtools/repotest.py	Fri Mar 22 19:37:51 2013 +0100
+++ b/devtools/repotest.py	Fri Mar 22 20:10:19 2013 +0100
@@ -262,8 +262,8 @@
         u = self.repo._build_user(self.session, self.session.user.eid)
         u._groups = set(groups)
         s = Session(u, self.repo)
-        s._threaddata.cnxset = self.cnxset
-        s._threaddata.ctx_count = 1
+        s._tx.cnxset = self.cnxset
+        s._tx.ctx_count = 1
         # register session to ensure it gets closed
         self._dumb_sessions.append(s)
         return s
@@ -311,7 +311,7 @@
             del self.repo.sources_by_uri[source.uri]
         undo_monkey_patch()
         for session in self._dumb_sessions:
-            session._threaddata.cnxset = None
+            session._tx.cnxset = None
             session.close()
 
     def _prepare_plan(self, rql, kwargs=None):