devtools/testlib.py
changeset 9471 367fe83d9f98
parent 9460 a2a0bc984863
child 9472 ae97167956b1
--- a/devtools/testlib.py	Mon Jan 06 17:25:55 2014 +0100
+++ b/devtools/testlib.py	Thu Jan 23 18:26:16 2014 +0100
@@ -587,7 +587,7 @@
                 groups = login
             login = req
             assert not isinstance(self, type)
-            req = self._orig_cnx[0].request()
+            req = self._admin_clt_cnx
         if password is None:
             password = login.encode('utf8')
         user = req.create_entity('CWUser', login=unicode(login),