summaryrefslogtreecommitdiff
path: root/coverage/env.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-02-20 17:11:38 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-02-20 17:18:05 -0500
commit9d90ebd1e6bd49a7ff13dad85ae3593995127565 (patch)
tree17c6124376cb1c7b316be4026e4cb92976010dc5 /coverage/env.py
parentc778139f859c75815fdccefedf9b4133318be795 (diff)
downloadpython-coveragepy-git-9d90ebd1e6bd49a7ff13dad85ae3593995127565.tar.gz
fix: pypy3.9 traces decorators like CPython 3.8
Diffstat (limited to 'coverage/env.py')
-rw-r--r--coverage/env.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/env.py b/coverage/env.py
index ecc40c4f..444cb892 100644
--- a/coverage/env.py
+++ b/coverage/env.py
@@ -71,7 +71,7 @@ class PYBEHAVIOR:
# When a function is decorated, does the trace function get called for the
# @-line and also the def-line (new behavior in 3.8)? Or just the @-line
# (old behavior)?
- trace_decorated_def = (CPYTHON and PYVERSION >= (3, 8))
+ trace_decorated_def = (CPYTHON and PYVERSION >= (3, 8)) or (PYPY and PYVERSION >= (3, 9))
# Functions are no longer claimed to start at their earliest decorator even though
# the decorators are traced?