From d723b46460dc7ffb4abf54806087ffd614b81331 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 9 Jan 2022 11:37:29 -0500 Subject: fix: 3.11 now traces decorator lines as the decorators execute See: https://bugs.python.org/issue46234 --- coverage/env.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'coverage/env.py') diff --git a/coverage/env.py b/coverage/env.py index 64d93e21..cf2f9d26 100644 --- a/coverage/env.py +++ b/coverage/env.py @@ -100,6 +100,10 @@ class PYBEHAVIOR: # Some words are keywords in some places, identifiers in other places. soft_keywords = (PYVERSION >= (3, 10)) + # CPython 3.11 now jumps to the decorator line again while executing + # the decorator. + trace_decorator_line_again = (PYVERSION > (3, 11, 0, 'alpha', 3, 0)) + # Coverage.py specifics. -- cgit v1.2.1