Skip to content

Commit 7f3e6cd

Browse files
committed
debug: improve the assert firing in #1896
1 parent 3ed5915 commit 7f3e6cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

coverage/lcovreport.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ def lcov_arcs(
121121
# this probably means 'line' was never executed at all.
122122
# Cross-check with the line stats.
123123
assert len(executed_arcs[line]) == 0
124-
assert line in analysis.missing
124+
assert line in analysis.missing, (
125+
f"In {fr.filename}: {line=} should be in analysis.missing={sorted(analysis.missing)}"
126+
)
125127
destinations = [
126128
(dst, "-") for dst in missing_arcs[line]
127129
]

0 commit comments

Comments
 (0)