summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/coveragetest.py4
-rw-r--r--tests/test_arcs.py2
-rw-r--r--tests/test_farm.py2
-rw-r--r--tests/test_process.py6
4 files changed, 7 insertions, 7 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py
index d13f2bbb..f71fcb67 100644
--- a/tests/coveragetest.py
+++ b/tests/coveragetest.py
@@ -391,7 +391,7 @@ class CoverageTest(
command_words = [os.path.basename(sys.executable)]
elif command_name == "coverage":
- if env.JYTHON:
+ if env.JYTHON: # pragma: only jython
# Jython can't do reporting, so let's skip the test now.
if command_args and command_args[0] in ('report', 'html', 'xml', 'annotate'):
self.skipTest("Can't run reporting commands in Jython")
@@ -413,7 +413,7 @@ class CoverageTest(
# much path munging here, but...
pythonpath_name = "PYTHONPATH"
if env.JYTHON:
- pythonpath_name = "JYTHONPATH"
+ pythonpath_name = "JYTHONPATH" # pragma: only jython
testmods = self.nice_file(self.working_root(), 'tests/modules')
zipfile = self.nice_file(self.working_root(), 'tests/zipmods.zip')
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index eaa57e66..f3efda55 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -1102,7 +1102,7 @@ class MiscArcTest(CoverageTest):
def test_pathologically_long_code_object(self):
if env.JYTHON:
- self.skipTest("Bytecode concerns are irrelevant on Jython")
+ self.skipTest("Bytecode concerns are irrelevant on Jython") # pragma: only jython
# https://bitbucket.org/ned/coveragepy/issue/359
# The structure of this file is such that an EXTENDED_ARG bytecode is
diff --git a/tests/test_farm.py b/tests/test_farm.py
index 4a80be47..f9b79a23 100644
--- a/tests/test_farm.py
+++ b/tests/test_farm.py
@@ -31,7 +31,7 @@ TEST_FILES = glob.glob("tests/farm/*/*.py")
def test_farm(filename):
if env.JYTHON:
# All of the farm tests use reporting, so skip them all.
- skip("Farm tests don't run on Jython")
+ skip("Farm tests don't run on Jython") # pragma: only jython
FarmTestCase(filename).run_fully()
diff --git a/tests/test_process.py b/tests/test_process.py
index 0182fa26..4d67897d 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -685,7 +685,7 @@ class EnvironmentTest(CoverageTest):
if env.JYTHON:
# Jython has a different sys.argv[0], always skip it.
- self.set_environ("COVERAGE_TRY_EXECFILE_SKIPS", "argv0")
+ self.set_environ("COVERAGE_TRY_EXECFILE_SKIPS", "argv0") # pragma: only jython
def assert_execfile_output(self, out):
"""Assert that the output we got is a successful run of try_execfile.py"""
@@ -891,7 +891,7 @@ class AliasedCommandTest(CoverageTest):
def setUp(self):
super(AliasedCommandTest, self).setUp()
if env.JYTHON:
- self.skipTest("Coverage command names don't work on Jython")
+ self.skipTest("Coverage command names don't work on Jython") # pragma: only jython
def test_major_version_works(self):
# "coverage2" works on py2
@@ -1095,7 +1095,7 @@ class UnicodeFilePathsTest(CoverageTest):
def setUp(self):
super(UnicodeFilePathsTest, self).setUp()
if env.JYTHON:
- self.skipTest("Jython 2 doesn't like accented file names")
+ self.skipTest("Jython 2 doesn't like accented file names") # pragma: only jython
def test_accented_dot_py(self):
# Make a file with a non-ascii character in the filename.