diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-14 13:22:36 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-14 13:22:36 -0500 |
commit | 04beb40df71bd0c3774f44016bfc85389319ef7f (patch) | |
tree | 6e38fa1a45d15d13fb703e7e41c313734dc230a1 /tests/coveragetest.py | |
parent | ef13e807a709ad0cda9c0f51b4e43894dc735ecb (diff) | |
download | python-coveragepy-git-04beb40df71bd0c3774f44016bfc85389319ef7f.tar.gz |
More Jython test fixes/skips
Diffstat (limited to 'tests/coveragetest.py')
-rw-r--r-- | tests/coveragetest.py | 8 |
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) |