diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-18 22:52:10 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-18 22:52:10 -0500 |
commit | 8dba481b188f4df23074816f9fa8c32a488482e6 (patch) | |
tree | 94df16d98906e0574277b670a6454d04af9a5ff0 /tests/test_concurrency.py | |
parent | 1a6b57d7d181ba4d8eb6098aab7c58670db69ea9 (diff) | |
download | python-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_concurrency.py')
-rw-r--r-- | tests/test_concurrency.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index f2aa7977..0a9fca0d 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -49,6 +49,9 @@ def measurable_line(l): return False if l.startswith('else:'): return False + if env.JYTHON and l.startswith(('try:', 'except:', 'except ', 'break', 'with ')): + # Jython doesn't measure these statements. + return False # pragma: only jython return True |