summaryrefslogtreecommitdiff
path: root/coverage/results.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-11-05 07:23:21 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-11-05 07:23:21 -0400
commit9209c555c7612b4a649edca5db97a04177ee5a9a (patch)
tree2148c2af84186fd1d090b762851fe608647fa5df /coverage/results.py
parent05562e40c0bea5b89fa9ec2caa0eaa4cebfccd64 (diff)
downloadpython-coveragepy-git-9209c555c7612b4a649edca5db97a04177ee5a9a.tar.gz
fix: don't report branches to exclusions as missing. #1271
Diffstat (limited to 'coverage/results.py')
-rw-r--r--coverage/results.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/results.py b/coverage/results.py
index 3daa3e8e..11c4b09b 100644
--- a/coverage/results.py
+++ b/coverage/results.py
@@ -84,13 +84,14 @@ class Analysis:
@contract(returns='list(tuple(int, int))')
def arcs_missing(self):
- """Returns a sorted list of the arcs in the code not executed."""
+ """Returns a sorted list of the unexecuted arcs in the code."""
possible = self.arc_possibilities()
executed = self.arcs_executed()
missing = (
p for p in possible
if p not in executed
and p[0] not in self.no_branch
+ and p[1] not in self.excluded
)
return sorted(missing)