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
This makes partial sense: the yield is an expression that branches control flow, and doesn't actually fully cover the line until control is resumed back into the generator. For example, consider:
Originally reported by Tristan Seligmann (Bitbucket: mithrandi, GitHub: mithrandi)
Consider this example:
If I run it without --branch, coverage tells me the first print and yield are executed, but the third print isn't; all as expected.
If I run it with --branch, coverage tells me the first print was executed, but that the yield was not executed at all. Huh?
The text was updated successfully, but these errors were encountered: