summaryrefslogtreecommitdiff
path: root/tests/test_concurrency.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_concurrency.py')
-rw-r--r--tests/test_concurrency.py3
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