-
-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong branch coverage for Python 3.8 in try-return-finally #707
Comments
Hmm, looks like something has changed since 3.7... Running the whole test suite on latest 3.8 shows these failures:
|
I've asked the core devs for an opinion: https://bugs.python.org/issue34705 |
Hi again Ned, In the latest version of Python 3.8 (11c4eaa99362f91c7faea88e31df3e46af020023) coverage is very broken, you can see here: https://travis-ci.org/lhupfeldt/multiconf/jobs/436314142. I have 100% coverage on Python 3.6 and 3.7. All these coverage errors are new, they were not there when I created this issue with an earlier version of Python 3.8. Sorry I don't have time to dig into it and provide examples right now. You might want to alert core devs again. |
multiconf/envs.py 210 37 82 2 86.644% 313-1149, 91->125, 92->91 |
This is actually a different cause than the original problem. The phantom lines are due to a change in the lnotab table that was made in Python 3.6, but hasn't been used until now. The phantom line problem is a simple fix that I have to decide how to ship. |
The phantom line issue is #714 |
@lhupfeldt I've made some fixes. Can you try installing from GitHub to see if it works for you?
|
Both the try-finally and the phantom lines issues are solved. Thank you. Using pip install with the link did not work though, I ran python3.8 setup.py install from commit 51aacdb instead. |
You had an extra 'nedbat' in pip install command, it should be: |
Oops, thanks! |
No problem. |
This fix is in 4.5.2, just released: https://pypi.org/project/coverage/4.5.2/ |
Given the following program:
stored in
try_return_finally.py
Shows full coverage for python 3.6:
Partial branch for python 3.8:
The text was updated successfully, but these errors were encountered: