Commit 76716bc2 authored by Julien Anguenot's avatar Julien Anguenot

Insert the ZODB src dir first in the sys.path to avoid a name conflict

with zope.whatever librairies that might be installed on the Python
version used to launch these tests.
parent 60da1256
...@@ -34,9 +34,13 @@ LIB_DIR = os.path.join("build", "lib.%s" % PLAT_SPEC) ...@@ -34,9 +34,13 @@ LIB_DIR = os.path.join("build", "lib.%s" % PLAT_SPEC)
path = "src" path = "src"
if os.path.isdir(LIB_DIR): if os.path.isdir(LIB_DIR):
path = LIB_DIR path = LIB_DIR
print "Running tests from", path print "Running tests from", path
# Insert the ZODB src dir first in the sys.path to avoid a name conflict
# with zope.whatever librairies that might be installed on the Python
# version used to launch these tests.
sys.path.insert(0, path)
sys.path.append(path)
from zope.testing import testrunner from zope.testing import testrunner
# Persistence/__init__.py generates a long warning message about the # Persistence/__init__.py generates a long warning message about the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment