diff options
Diffstat (limited to 'coverage/env.py')
-rw-r--r-- | coverage/env.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/coverage/env.py b/coverage/env.py index 80153ecf..5c612413 100644 --- a/coverage/env.py +++ b/coverage/env.py @@ -85,6 +85,13 @@ class PYBEHAVIOR(object): # Python 3.9a1 made sys.argv[0] and other reported files absolute paths. report_absolute_files = (PYVERSION >= (3, 9)) + # Lines after break/continue/return/raise are no longer compiled into the + # bytecode. They used to be marked as missing, now they aren't executable. + omit_after_jump = pep626 + + # PyPy has always omitted statements after return. + omit_after_return = omit_after_jump or PYPY + # Coverage.py specifics. # Are we using the C-implemented trace function? |