Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Wrong branch coverage for Python 3.8 in try-return-finally #707
Given the following program:
_val = None def return_from_try_finaly(early): global _val _val = 1 try: orig_val = _val _val = 2 if early: return 1 finally: _val = orig_val return 3 assert return_from_try_finaly(True) == 1 assert _val == 1 assert return_from_try_finaly(False) == 3 assert _val == 1
Shows full coverage for python 3.6:
Partial branch for python 3.8:
Hmm, looks like something has changed since 3.7... Running the whole test suite on latest 3.8 shows these failures:
referenced this issue
Sep 28, 2018
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.
You had an extra 'nedbat' in pip install command, it should be: