server/sources/native.py
branchstable
changeset 2072 8008e8812d76
parent 2066 2c4bf4ee88a2
child 2306 95da5d9f0870
--- a/server/sources/native.py	Tue Jun 09 14:45:57 2009 +0200
+++ b/server/sources/native.py	Tue Jun 09 14:46:39 2009 +0200
@@ -154,7 +154,10 @@
         self._cache = Cache(repo.config['rql-cache-size'])
         self._temp_table_data = {}
         self._eid_creation_lock = Lock()
-        if self.dbdriver == 'sqlite':
+        # XXX no_sqlite_wrap trick since we've a sqlite locking pb when
+        # running unittest_multisources with the wrapping below
+        if self.dbdriver == 'sqlite' and \
+               not getattr(repo.config, 'no_sqlite_wrap', False):
             from cubicweb.server.sources.extlite import ConnectionWrapper
             self.get_connection = lambda: ConnectionWrapper(self)
             self.check_connection = lambda cnx: cnx