devtools/repotest.py
changeset 10365 21461f80f348
parent 9850 5ef9dd383ae2
child 10589 7c23b7de2b8d
--- a/devtools/repotest.py	Wed Jun 11 15:32:07 2014 +0200
+++ b/devtools/repotest.py	Wed Jun 11 17:14:32 2014 +0200
@@ -259,12 +259,11 @@
 
     def qexecute(self, rql, args=None, build_descr=True):
         with self.session.new_cnx() as cnx:
-            with cnx.ensure_cnx_set:
-                try:
-                    return self.o.execute(cnx, rql, args, build_descr)
-                finally:
-                    if rql.startswith(('INSERT', 'DELETE', 'SET')):
-                        cnx.commit()
+            try:
+                return self.o.execute(cnx, rql, args, build_descr)
+            finally:
+                if rql.startswith(('INSERT', 'DELETE', 'SET')):
+                    cnx.commit()
 
 
 class BasePlannerTC(BaseQuerierTC):