[Zodb-checkins] SVN: ZODB/trunk/test.py Insert the ZODB src dir
first in the sys.path to avoid a name conflict
Julien Anguenot
ja at nuxeo.com
Wed Nov 23 21:52:04 EST 2005
Log message for revision 40349:
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.
Changed:
U ZODB/trunk/test.py
-=-
Modified: ZODB/trunk/test.py
===================================================================
--- ZODB/trunk/test.py 2005-11-23 17:20:27 UTC (rev 40348)
+++ ZODB/trunk/test.py 2005-11-24 02:52:03 UTC (rev 40349)
@@ -34,9 +34,13 @@
path = "src"
if os.path.isdir(LIB_DIR):
path = LIB_DIR
-print "Running tests from", path
+ print "Running tests from", path
-sys.path.append(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)
+
from zope.testing import testrunner
# Persistence/__init__.py generates a long warning message about the
More information about the Zodb-checkins
mailing list