[Python-modules-commits] [python-docutils] 08/14: fix sys.path for tests
Dmitry Shachnev
mitya57 at moszumanska.debian.org
Sat Dec 10 10:40:51 UTC 2016
This is an automated email from the git hooks/post-receive script.
mitya57 pushed a commit to branch master
in repository python-docutils.
commit 56f365a66ddad7d03bc851532ea79ad81096b1a6
Author: Jakub Wilk <jwilk at debian.org>
Date: Thu Oct 8 11:57:08 2015 -0700
fix sys.path for tests
Fix sys.path in the test support module so that is matches paths that are in
the Debian package.
Forwarded: not-needed
Last-Update: 2013-05-16
Patch-Name: test-sys-path.diff
---
test/DocutilsTestSupport.py | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/test/DocutilsTestSupport.py b/test/DocutilsTestSupport.py
index 1764c05..731d519 100644
--- a/test/DocutilsTestSupport.py
+++ b/test/DocutilsTestSupport.py
@@ -52,12 +52,9 @@ testroot = os.path.abspath(os.path.dirname(__file__) or os.curdir)
os.chdir(testroot)
if sys.version_info >= (3,0):
sys.path.insert(0, os.path.normpath(os.path.join(testroot,
- '..', 'build', 'lib')))
- sys.path.append(os.path.normpath(os.path.join(testroot, '..',
- 'build', 'lib', 'extras')))
+ '..', 'build', 'py3')))
else:
- sys.path.insert(0, os.path.normpath(os.path.join(testroot, '..')))
- sys.path.append(os.path.normpath(os.path.join(testroot, '..', 'extras')))
+ sys.path.insert(0, os.path.normpath(os.path.join(testroot, '..', 'build', 'py2')))
sys.path.insert(0, testroot)
try:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-docutils.git
More information about the Python-modules-commits
mailing list