From b98384659f5c0913ae0d8e617759745ae451cc7d Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Tue, 22 Oct 2019 07:32:30 +0700 Subject: [PATCH] functional_tests: Inject PYTHONPATH The tests fail when the installation prefix is different from the Python prefix, and PYTHONPATH is used to map the installation prefix into the current Python namespace. --- vex/functional_tests/test_basic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vex/functional_tests/test_basic.py b/vex/functional_tests/test_basic.py index e36fa1d..0292eaf 100644 --- a/vex/functional_tests/test_basic.py +++ b/vex/functional_tests/test_basic.py @@ -32,6 +32,7 @@ class Run(object): def __init__(self, args=None, env=None, timeout=None): self.args = args or [] self.env = env.copy() if env else {} + self.env['PYTHONPATH'] = os.environ['PYTHONPATH'] self.timeout = timeout # self.timer = None