You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What code shows the problem? Give us a specific commit of a specific repo that we can check out. If you've already worked around the problem, please provide a commit before that fix.
What commands should we run to reproduce the problem? Be specific. Include everything, even git clone, pip install, and so on. Explain like we're five!
Run coverage run --branch -m pytest test.py && coverage report -m for the sample code above in a file named test.py.
Expected behavior
This example code should be 100% covered on Python 3.12 as on Python 3.11.
Describe the bug
Covered branch for exiting from a conditional in a finally block is being reported uncovered in Python 3.12.0 beta 1 and beta 2.
To Reproduce
How can we reproduce the problem? Please be specific. Don't link to a failing CI job. Answer the questions below:
coverage debug sys
is helpful.coverage==7.2.7
but this problem also occurs formaster
.coverage debug sys
pip freeze
is helpful.pip freeze
git clone
,pip install
, and so on. Explain like we're five!coverage run --branch -m pytest test.py && coverage report -m
for the sample code above in a file namedtest.py
.Expected behavior
This example code should be 100% covered on Python 3.12 as on Python 3.11.
Additional Information
Example Runs
The text was updated successfully, but these errors were encountered: