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
Originally reported byBrandon Rhodes (Bitbucket: brandon, GitHub: brandon)
The attached program, which sends its "for" statement through every possible branch, nevertheless elicits a complaint from "coverage" that the "for" loop missed one of its possibilities. Apparently, "coverage" does not realize that a "for" loop with an "else" statement cannot result in immediately jumping to the end of the whole statement, skipping the "else".
It may be useful: is a non-iterable is given to the for construct, making it raise a TypeError (and thus jumping over), all branches are marked as executed.
Originally reported by Brandon Rhodes (Bitbucket: brandon, GitHub: brandon)
The attached program, which sends its "for" statement through every possible branch, nevertheless elicits a complaint from "coverage" that the "for" loop missed one of its possibilities. Apparently, "coverage" does not realize that a "for" loop with an "else" statement cannot result in immediately jumping to the end of the whole statement, skipping the "else".
The text was updated successfully, but these errors were encountered: