diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-28 10:46:11 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-28 11:02:15 -0500 |
commit | 79087b9f9e561bec1654ee80f143c4754641e81f (patch) | |
tree | 618599d916054cb89becb3f6c3f36c22b01984e3 /coverage/results.py | |
parent | b12f189e8ed34b31438b8cca19133b74f7d67f90 (diff) | |
download | python-coveragepy-git-79087b9f9e561bec1654ee80f143c4754641e81f.tar.gz |
fix: don't report branches to missing lines. #1065
Fixes: #1065
Fixes: #955
Diffstat (limited to 'coverage/results.py')
-rw-r--r-- | coverage/results.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/results.py b/coverage/results.py index 7f989361..4916864d 100644 --- a/coverage/results.py +++ b/coverage/results.py @@ -312,7 +312,7 @@ def format_lines(statements, lines, arcs=None): line_exits = sorted(arcs) for line, exits in line_exits: for ex in sorted(exits): - if line not in lines: + if line not in lines and ex not in lines: dest = (ex if ex > 0 else "exit") line_items.append((line, "%d->%s" % (line, dest))) |