summaryrefslogtreecommitdiff
path: root/coverage/html.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-24 21:49:19 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-24 21:49:19 -0500
commit9e2cd06dd56cf64e787b7951c889ceda31af7dae (patch)
treebfb86fbe8de9d757240a63c515c111b00e5b644e /coverage/html.py
parent4559252c75cba7b6791c777f43fd12d60ef40282 (diff)
downloadpython-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.py8
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