diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-13 07:03:24 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-13 07:03:24 -0400 |
commit | 82d865896f14d29a04a598e34812ab47975f21cb (patch) | |
tree | 0058d7e1f84ba4c79646f15070b7fc7e24b5e421 /coverage/summary.py | |
parent | af0f406a83035e292f27735be3366532fc491775 (diff) | |
download | python-coveragepy-git-82d865896f14d29a04a598e34812ab47975f21cb.tar.gz |
Simplify the skip_covered logic
Diffstat (limited to 'coverage/summary.py')
-rw-r--r-- | coverage/summary.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/coverage/summary.py b/coverage/summary.py index 7eb0f2fc..46aa4f5c 100644 --- a/coverage/summary.py +++ b/coverage/summary.py @@ -61,10 +61,7 @@ class SummaryReporter(Reporter): if self.config.skip_covered: # Don't report on 100% files. no_missing_lines = (nums.n_missing == 0) - if self.branches: - no_missing_branches = (nums.n_partial_branches == 0) - else: - no_missing_branches = True + no_missing_branches = (nums.n_partial_branches == 0) if no_missing_lines and no_missing_branches: continue |