From 67f1440e0a384000e337ab54bd9cc01804aec201 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 24 Dec 2024 11:00:30 -0500 Subject: [PATCH] debug: this condition is never true. really? --- coverage/results.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coverage/results.py b/coverage/results.py index 43e5b523c..a9bde97c3 100644 --- a/coverage/results.py +++ b/coverage/results.py @@ -219,8 +219,7 @@ def executed_branch_arcs(self) -> dict[TLineNo, list[TLineNo]]: branch_lines = set(self._branch_lines()) eba = collections.defaultdict(list) for l1, l2 in self.arcs_executed: - if l1 == l2: - continue + assert l1 != l2, f"Oops: Didn't think this could happen: {l1 = }, {l2 = }" if (l1, l2) not in self.arc_possibilities_set: continue if l1 in branch_lines: