avoid to internally raise 3.19 warnings
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 01 Apr 2014 10:28:16 +0200
changeset 9606 bf0d8df2aefb
parent 9605 e6b8931abe17
child 9607 6942622fd5dc
avoid to internally raise 3.19 warnings
devtools/testlib.py
server/migractions.py
--- a/devtools/testlib.py	Mon Apr 07 12:28:25 2014 +0200
+++ b/devtools/testlib.py	Tue Apr 01 10:28:16 2014 +0200
@@ -553,7 +553,7 @@
             raise
         resume_tracing()
         self.setup_database()
-        self.commit()
+        self._admin_clt_cnx.commit()
         MAILBOX[:] = [] # reset mailbox
 
     def tearDown(self):
--- a/server/migractions.py	Mon Apr 07 12:28:25 2014 +0200
+++ b/server/migractions.py	Tue Apr 01 10:28:16 2014 +0200
@@ -93,7 +93,7 @@
             assert repo
             self.cnx = cnx
             self.repo = repo
-            self.session = repo._get_session(cnx.sessionid)
+            self.session = cnx._session
         elif connect:
             self.repo_connect()
             self.set_session()