1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
From 56f365a66ddad7d03bc851532ea79ad81096b1a6 Mon Sep 17 00:00:00 2001
From: Jakub Wilk <jwilk@debian.org>
Date: Thu, 8 Oct 2015 11:57:08 -0700
Subject: 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:
|