summaryrefslogtreecommitdiff
path: root/coverage/results.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-10-20 22:31:12 -0400
committerNed Batchelder <ned@nedbatchelder.com>2014-10-20 22:31:12 -0400
commit6c3042ad6f61af8027cf3d4c513d914d9620b896 (patch)
treea100535cc7c1f205882a7cdaf42c394b01d9bf8c /coverage/results.py
parenta2db5014858f024b6866cf54bb9b09509aca9c18 (diff)
downloadpython-coveragepy-git-6c3042ad6f61af8027cf3d4c513d914d9620b896.tar.gz
Make the text report branch column match the HTML report
Diffstat (limited to 'coverage/results.py')
-rw-r--r--coverage/results.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/coverage/results.py b/coverage/results.py
index 4449de56..6c41a944 100644
--- a/coverage/results.py
+++ b/coverage/results.py
@@ -86,7 +86,8 @@ class Analysis(object):
""" The missing branch arcs, formatted nicely.
Returns a string like "1->2, 1->3, 16->20". Omits any mention of
- missing lines, so if line 17 is missing, then 16->17 won't be included.
+ branches from missing lines, so if line 17 is missing, then 17->18
+ won't be included.
"""
arcs = self.missing_branch_arcs()
@@ -95,7 +96,7 @@ class Analysis(object):
pairs = []
for line, exits in line_exits:
for ex in sorted(exits):
- if line not in missing and ex not in missing:
+ if line not in missing:
pairs.append('%d->%d' % (line, ex))
return ', '.join(pairs)