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
commitab673e35a6b1ba4f63a49939a6ba3de810a338b8 (patch)
treee5b33a1ab7641e583c61464f62d6b745775490e7 /coverage/html.py
parent4fbae6187742499a94f7f8575ce68889ae9f9f46 (diff)
downloadpython-coveragepy-ab673e35a6b1ba4f63a49939a6ba3de810a338b8.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 3877c83..fcab6f4 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