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
Branch coverage can only measure branching from one line to another, since Python's trace facility currently only supports per-line tracing. 3.7 introduces opcode-level tracing, though coverage.py will need significant changes to make use of it.
Original comment byFederico Carrá (Bitbucket: feferulo, GitHub: Unknown)
Maybe you can enhance the original file replacing the if-else assignment with an expanded if-else block of code before running it through coverage (as if the variable assignment where syntactic sugar). It's beyond my comprehension the difficulty of such an "enhancement operator".
Originally reported by Federico Carrá (Bitbucket: feferulo, GitHub: Unknown)
Hello.
In my code I have a variable assignment with a if-else statement as this one:
When doing coverage --with-branches, it does not consider that this has branches.
The text was updated successfully, but these errors were encountered: