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