Skip to content

Commit

Permalink
debug: this condition is never true. really?
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Dec 24, 2024
1 parent c85eaba commit 67f1440
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions coverage/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 67f1440

Please sign in to comment.