summaryrefslogtreecommitdiff
path: root/docutils/test/DocutilsTestSupport.py
diff options
context:
space:
mode:
authorwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-12-15 20:54:48 +0000
committerwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-12-15 20:54:48 +0000
commit3adf67cd6aeb2f4f14a5e274c258759efbc63ba5 (patch)
tree00dbb7397a19eff72763ae478908935b1e2030d8 /docutils/test/DocutilsTestSupport.py
parent185f2b4fb839e4044c32afdbbbefd86f552a85a1 (diff)
downloaddocutils-3adf67cd6aeb2f4f14a5e274c258759efbc63ba5.tar.gz
added absolute path of test root to sys.path because Py21/Py22 insert the
*relative* path "test" at the beginning of sys.path when running "python2.2 test/alltests.py", which breaks the imports due to chdir; replaced os.path.sep with os.sep for Py21/Py22 compatibility git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@4220 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/DocutilsTestSupport.py')
-rw-r--r--docutils/test/DocutilsTestSupport.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/docutils/test/DocutilsTestSupport.py b/docutils/test/DocutilsTestSupport.py
index 758b86454..c3c0aa2a2 100644
--- a/docutils/test/DocutilsTestSupport.py
+++ b/docutils/test/DocutilsTestSupport.py
@@ -46,7 +46,8 @@ import os
testroot = os.path.abspath(os.path.dirname(__file__) or os.curdir)
os.chdir(testroot)
-sys.path.insert(1, os.path.normpath(os.path.join(testroot, '..')))
+sys.path.insert(0, os.path.normpath(os.path.join(testroot, '..')))
+sys.path.insert(0, testroot)
sys.path.append(os.path.normpath(os.path.join(testroot, '..', 'extras')))
import unittest