From 8dba481b188f4df23074816f9fa8c32a488482e6 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 18 Jan 2017 22:52:10 -0500 Subject: No test failures on Jython One or two of these are questionable accommodations, but there are no failures. --- tests/test_concurrency.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/test_concurrency.py') 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 -- cgit v1.2.1