summaryrefslogtreecommitdiff
path: root/coverage/results.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/results.py')
-rw-r--r--coverage/results.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/results.py b/coverage/results.py
index 138782e6..59cc1fa9 100644
--- a/coverage/results.py
+++ b/coverage/results.py
@@ -98,6 +98,8 @@ class Analysis(object):
"""Returns lines that have more than one exit."""
exit_counts = {}
for l1,l2 in self.arc_possibilities():
+ if l1 == -1:
+ continue
if l1 not in exit_counts:
exit_counts[l1] = 0
exit_counts[l1] += 1
@@ -107,6 +109,8 @@ class Analysis(object):
def total_branches(self):
exit_counts = {}
for l1,l2 in self.arc_possibilities():
+ if l1 == -1:
+ continue
if l1 not in exit_counts:
exit_counts[l1] = 0
exit_counts[l1] += 1