[testlib] we should not replace db-name in sources, this cause undesired side effect (when running pytest on whole cw for instance). Proper fix in logilab.database stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 14 Apr 2010 10:31:09 +0200
branchstable
changeset 5245 385c2351153e
parent 5240 2af0427e8ead
child 5247 3c8f6e6014f4
child 5253 7ee07d18dc95
[testlib] we should not replace db-name in sources, this cause undesired side effect (when running pytest on whole cw for instance). Proper fix in logilab.database
devtools/__init__.py
--- a/devtools/__init__.py	Wed Apr 14 08:58:57 2010 +0200
+++ b/devtools/__init__.py	Wed Apr 14 10:31:09 2010 +0200
@@ -158,9 +158,6 @@
         sources = super(TestServerConfiguration, self).sources()
         if not sources:
             sources = DEFAULT_SOURCES
-        if sources['system']['db-driver'] == 'sqlite':
-            # we need an abspath in case tests are changing the cwd
-            sources['system']['db-name'] = abspath(sources['system']['db-name'])
         return sources