From 7f3e6cd54229004b283f0d763d2b75ca9a0d4e4c Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 21 Nov 2024 12:58:28 -0500 Subject: [PATCH] debug: improve the assert firing in #1896 --- coverage/lcovreport.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coverage/lcovreport.py b/coverage/lcovreport.py index 70507c003..a7124abe6 100644 --- a/coverage/lcovreport.py +++ b/coverage/lcovreport.py @@ -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] ]