diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-14 10:01:03 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-14 10:01:03 -0500 |
| commit | 11ac7823c5b2239b9b9a38c7de0650eb1f9c99c0 (patch) | |
| tree | 0dd176d31dda4244a8b23e1bcc466e30ed7f861d /tests/test_execfile.py | |
| parent | 690541622755562969d07add1b1bdbeb3fdfe064 (diff) | |
| download | python-coveragepy-11ac7823c5b2239b9b9a38c7de0650eb1f9c99c0.tar.gz | |
Reporting doesn't work on Jython, so don't run reporting tests there.
Diffstat (limited to 'tests/test_execfile.py')
| -rw-r--r-- | tests/test_execfile.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_execfile.py b/tests/test_execfile.py index 8585b16..6973022 100644 --- a/tests/test_execfile.py +++ b/tests/test_execfile.py @@ -10,6 +10,7 @@ import os.path import re import sys +from coverage import env from coverage.backward import binary_bytes from coverage.execfile import run_python_file, run_python_module from coverage.misc import NoCode, NoSource @@ -102,6 +103,9 @@ class RunPycFileTest(CoverageTest): def make_pyc(self): """Create a .pyc file, and return the relative path to it.""" + if env.JYTHON: + self.skipTest("Can't make .pyc files on Jython") # pragma: only jython + self.make_file("compiled.py", """\ def doit(): print("I am here!") |
