devtools/testlib.py
changeset 9472 ae97167956b1
parent 9471 367fe83d9f98
child 9473 53974a06d646
--- a/devtools/testlib.py	Thu Jan 23 18:26:16 2014 +0100
+++ b/devtools/testlib.py	Tue Jan 14 17:30:13 2014 +0100
@@ -316,6 +316,8 @@
             # can't call set_cnx as the Connection is not managed by the
             # session.
             session._Session__threaddata.cnx = self._admin_clt_cnx._cnx
+        else:
+            session._Session__threaddata.cnx = self.cnx._cnx
         session.set_cnxset()
         return session