[devtools] _orig_cnx does not exist any more (missing change)
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 23 Jan 2014 18:26:16 +0100
changeset 9471 367fe83d9f98
parent 9470 b1ff6525ece3
child 9472 ae97167956b1
[devtools] _orig_cnx does not exist any more (missing change)
devtools/testlib.py
pytestconf.py
--- 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),
--- a/pytestconf.py	Mon Jan 06 17:25:55 2014 +0100
+++ b/pytestconf.py	Thu Jan 23 18:26:16 2014 +0100
@@ -43,6 +43,6 @@
         if not cls.repo.shutting_down:
             cls.repo.shutdown()
         del cls.repo
-    for clsattr in ('cnx', '_orig_cnx', 'config', '_config', 'vreg', 'schema'):
+    for clsattr in ('cnx', 'config', '_config', 'vreg', 'schema'):
         if clsattr in cls.__dict__:
             delattr(cls, clsattr)