Skip to content

Commit

Permalink
debug: improve the assert firing in #1896
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Nov 21, 2024
1 parent 3ed5915 commit 7f3e6cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coverage/lcovreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ def lcov_arcs(
# this probably means 'line' was never executed at all.
# Cross-check with the line stats.
assert len(executed_arcs[line]) == 0
assert line in analysis.missing
assert line in analysis.missing, (
f"In {fr.filename}: {line=} should be in analysis.missing={sorted(analysis.missing)}"
)
destinations = [
(dst, "-") for dst in missing_arcs[line]
]
Expand Down

0 comments on commit 7f3e6cd

Please sign in to comment.