diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-24 21:49:19 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-24 21:49:19 -0500 |
commit | 9e2cd06dd56cf64e787b7951c889ceda31af7dae (patch) | |
tree | bfb86fbe8de9d757240a63c515c111b00e5b644e /coverage/html.py | |
parent | 4559252c75cba7b6791c777f43fd12d60ef40282 (diff) | |
download | python-coveragepy-git-9e2cd06dd56cf64e787b7951c889ceda31af7dae.tar.gz |
Don't annotate partial branches with -1, use 'exit' instead.
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/coverage/html.py b/coverage/html.py index 3877c834..fcab6f4a 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -89,7 +89,13 @@ class HtmlReporter(Reporter): elif self.arcs and lineno in missing_branch_arcs: line_class += c_par n_par += 1 - annotate = " ".join(map(str, missing_branch_arcs[lineno])) + annlines = [] + for b in missing_branch_arcs[lineno]: + if b == -1: + annlines.append("exit") + else: + annlines.append(str(b)) + annotate = " ".join(annlines) elif lineno in analysis.statements: line_class += c_run |