--- a/hooks/test/unittest_syncschema.py Wed Jun 11 15:32:07 2014 +0200
+++ b/hooks/test/unittest_syncschema.py Wed Jun 11 17:14:32 2014 +0200
@@ -38,12 +38,11 @@
def index_exists(self, cnx, etype, attr, unique=False):
dbhelper = self.repo.system_source.dbhelper
- with cnx.ensure_cnx_set:
- sqlcursor = cnx.cnxset.cu
- return dbhelper.index_exists(sqlcursor,
- SQL_PREFIX + etype,
- SQL_PREFIX + attr,
- unique=unique)
+ sqlcursor = cnx.cnxset.cu
+ return dbhelper.index_exists(sqlcursor,
+ SQL_PREFIX + etype,
+ SQL_PREFIX + attr,
+ unique=unique)
def _set_perms(self, cnx, eid):
cnx.execute('SET X read_permission G WHERE X eid %(x)s, G is CWGroup',