summaryrefslogtreecommitdiff
path: root/tests/coveragetest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-01-14 13:22:36 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-01-14 13:22:36 -0500
commit04beb40df71bd0c3774f44016bfc85389319ef7f (patch)
tree6e38fa1a45d15d13fb703e7e41c313734dc230a1 /tests/coveragetest.py
parentef13e807a709ad0cda9c0f51b4e43894dc735ecb (diff)
downloadpython-coveragepy-git-04beb40df71bd0c3774f44016bfc85389319ef7f.tar.gz
More Jython test fixes/skips
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)