--- a/devtools/testlib.py Wed Jun 26 14:46:24 2013 +0200
+++ b/devtools/testlib.py Wed Jun 26 15:11:22 2013 +0200
@@ -224,7 +224,10 @@
session = self._current_session
if session is None:
session = self._admin_session
- session.set_cnx(self._admin_clt_cnx._cnxid)
+ # bypassing all sanity to use the same repo cnx in the session we
+ # can't call set_cnx as the Connection is not managed by the
+ # session.
+ session._Session__threaddata.cnx = self._admin_clt_cnx._cnx
session.set_cnxset()
return session