Context manager confuses branch miss detector when de-dent is close to finally statement

Issue #473 duplicate
Danny Hermes created an issue

Running the code to reproduce gives:

$ coverage run --branch
$ coverage report -m
Name       Stmts   Miss Branch BrPart  Cover   Missing
------------------------------------------------------      16      0      2      1    94%   17->20


Maybe I am misunderstanding which branches should occur?

Comments (3)

  1. Log in to comment