diff -r bab2befaac9b -r d9a1e7939ee6 devtools/testlib.py --- a/devtools/testlib.py Fri Jun 13 12:07:51 2014 +0200 +++ b/devtools/testlib.py Fri Jun 13 13:54:28 2014 +0200 @@ -261,7 +261,7 @@ @contextmanager def shell(self): from cubicweb.server.migractions import ServerMigrationHelper - with repoapi.ClientConnection(self._session) as cnx: + with self._session.new_cnx() as cnx: mih = ServerMigrationHelper(None, repo=self._repo, cnx=cnx, interactive=False, # hack so it don't try to load fs schema