summaryrefslogtreecommitdiff
path: root/tests/coveragetest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/coveragetest.py')
-rw-r--r--tests/coveragetest.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py
index a98462c4..d13f2bbb 100644
--- a/tests/coveragetest.py
+++ b/tests/coveragetest.py
@@ -411,13 +411,17 @@ class CoverageTest(
# Add our test modules directory to PYTHONPATH. I'm sure there's too
# much path munging here, but...
+ pythonpath_name = "PYTHONPATH"
+ if env.JYTHON:
+ pythonpath_name = "JYTHONPATH"
+
testmods = self.nice_file(self.working_root(), 'tests/modules')
zipfile = self.nice_file(self.working_root(), 'tests/zipmods.zip')
- pypath = os.getenv('PYTHONPATH', '')
+ pypath = os.getenv(pythonpath_name, '')
if pypath:
pypath += os.pathsep
pypath += testmods + os.pathsep + zipfile
- self.set_environ('PYTHONPATH', pypath)
+ self.set_environ(pythonpath_name, pypath)
self.last_command_status, self.last_command_output = run_command(cmd)
print(self.last_command_output)