devtools/testlib.py
changeset 9114 9a9d3f4bad31
parent 9111 9c867d852067
child 9117 e25c5abc667c
--- a/devtools/testlib.py	Thu Jun 27 14:12:00 2013 +0200
+++ b/devtools/testlib.py	Thu Jun 27 12:28:17 2013 +0200
@@ -281,8 +281,8 @@
         # get an admin session (without actual login)
         sources = db_handler.config.sources()
         login = unicode(sources['admin']['login'])
-        with self.repo.internal_session() as session:
-            rset = session.execute('CWUser U WHERE U login %(u)s', {'u': login})
+        with self.repo.internal_cnx() as cnx:
+            rset = cnx.execute('CWUser U WHERE U login %(u)s', {'u': login})
             user = rset.get_entity(0, 0)
             user.groups
             user.properties