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 repro.py
{}
$ coverage report -m
Name       Stmts   Miss Branch BrPart  Cover   Missing
------------------------------------------------------
repro.py      16      0      2      1    94%   17->20

screen_shot_001.png


Maybe I am misunderstanding which branches should occur?

Comments (3)

  1. Log in to comment