summaryrefslogtreecommitdiff
path: root/tests/test_arcs.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-01-18 22:52:10 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-01-18 22:52:10 -0500
commit8dba481b188f4df23074816f9fa8c32a488482e6 (patch)
tree94df16d98906e0574277b670a6454d04af9a5ff0 /tests/test_arcs.py
parent1a6b57d7d181ba4d8eb6098aab7c58670db69ea9 (diff)
downloadpython-coveragepy-git-8dba481b188f4df23074816f9fa8c32a488482e6.tar.gz
No test failures on Jython
One or two of these are questionable accommodations, but there are no failures.
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r--tests/test_arcs.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index c1fd35b6..de59bf21 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -143,10 +143,17 @@ class SimpleArcTest(CoverageTest):
)
def test_what_is_the_sound_of_no_lines_clapping(self):
+ if env.JYTHON:
+ # Jython reports no lines for an empty file.
+ arcz_missing=".1 1." # pragma: only jython
+ else:
+ # Other Pythons report one line.
+ arcz_missing=""
self.check_coverage("""\
# __init__.py
""",
arcz=".1 1.",
+ arcz_missing=arcz_missing,
)