diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-01-09 11:37:29 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-01-15 07:58:57 -0500 |
commit | d723b46460dc7ffb4abf54806087ffd614b81331 (patch) | |
tree | f15a9e0a380af291c912e1fe417d157e7e897e68 /coverage/env.py | |
parent | a60a9e8b5f52a76ce15be3289ca64821ce0869e7 (diff) | |
download | python-coveragepy-git-d723b46460dc7ffb4abf54806087ffd614b81331.tar.gz |
fix: 3.11 now traces decorator lines as the decorators execute
See: https://bugs.python.org/issue46234
Diffstat (limited to 'coverage/env.py')
-rw-r--r-- | coverage/env.py | 4 |
1 files changed, 4 insertions, 0 deletions
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. |