Skip to content

Commit 67f1440

Browse files
committed
debug: this condition is never true. really?
1 parent c85eaba commit 67f1440

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

coverage/results.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ def executed_branch_arcs(self) -> dict[TLineNo, list[TLineNo]]:
219219
branch_lines = set(self._branch_lines())
220220
eba = collections.defaultdict(list)
221221
for l1, l2 in self.arcs_executed:
222-
if l1 == l2:
223-
continue
222+
assert l1 != l2, f"Oops: Didn't think this could happen: {l1 = }, {l2 = }"
224223
if (l1, l2) not in self.arc_possibilities_set:
225224
continue
226225
if l1 in branch_lines:

0 commit comments

Comments
 (0)