From e5c5b0eda9c000987ecafaa914ff1d0513b342ac Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 14 Jan 2017 10:01:03 -0500 Subject: Reporting doesn't work on Jython, so don't run reporting tests there. --HG-- extra : amend_source : 144fd0ffb49fdef1139ae3f0085831ece14de43f --- tests/test_execfile.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/test_execfile.py') diff --git a/tests/test_execfile.py b/tests/test_execfile.py index 8585b16d..6973022a 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!") -- cgit v1.2.1