server/test/unittest_multisources.py
changeset 5655 ef903fff826d
parent 5590 a56eb02f9ce7
parent 5648 d6bee21cf5db
child 5768 1e73a466aa69
--- a/server/test/unittest_multisources.py	Tue Jun 01 17:06:41 2010 +0200
+++ b/server/test/unittest_multisources.py	Thu Jun 03 10:17:44 2010 +0200
@@ -24,7 +24,6 @@
 from cubicweb.devtools.testlib import CubicWebTC, refresh_repo
 from cubicweb.devtools.repotest import do_monkey_patch, undo_monkey_patch
 
-TestServerConfiguration.no_sqlite_wrap = True
 
 class TwoSourcesConfiguration(TestServerConfiguration):
     sourcefile = 'sources_multi'
@@ -48,6 +47,7 @@
 Connection_close = Connection.close
 
 def setup_module(*args):
+    TestServerConfiguration.no_sqlite_wrap = True
     # hi-jack PyroRQLSource.get_connection to access existing connection (no
     # pyro connection)
     PyroRQLSource.get_connection = lambda x: x.uri == 'extern-multi' and cnx3 or cnx2
@@ -64,6 +64,7 @@
     del repo2, cnx2, repo3, cnx3
     #del TwoSourcesTC.config.vreg
     #del TwoSourcesTC.config
+    TestServerConfiguration.no_sqlite_wrap = False
 
 class TwoSourcesTC(CubicWebTC):
     config = TwoSourcesConfiguration('data')