diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-01-05 07:15:16 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-01-10 09:46:18 -0500 |
commit | 5c3d0946821118ad11f5b10753c638a446f24bfe (patch) | |
tree | b79ae66790cfcd25774163d036de9e170722940c /coverage/env.py | |
parent | e3f8053d805f8930ffc8424ac098576457c5f506 (diff) | |
download | python-coveragepy-git-5c3d0946821118ad11f5b10753c638a446f24bfe.tar.gz |
PEP 626: Docstring-only functions changed again
Diffstat (limited to 'coverage/env.py')
-rw-r--r-- | coverage/env.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/coverage/env.py b/coverage/env.py index e9c65bb1..ea78a5be 100644 --- a/coverage/env.py +++ b/coverage/env.py @@ -82,6 +82,9 @@ class PYBEHAVIOR(object): # affect the outcome. actual_syspath0_dash_m = CPYTHON and (PYVERSION >= (3, 7, 0, 'beta', 3)) + # 3.7 changed how functions with only docstrings are numbered. + docstring_only_function = (not PYPY) and ((3, 7, 0, 'beta', 5) <= PYVERSION <= (3, 10)) + # When a break/continue/return statement in a try block jumps to a finally # block, does the finally block do the break/continue/return (pre-3.8), or # does the finally jump back to the break/continue/return (3.8) to do the |