summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/summary.py')
-rw-r--r--coverage/summary.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/coverage/summary.py b/coverage/summary.py
index 03270c04..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
@@ -87,6 +84,8 @@ class SummaryReporter(Reporter):
report_it = not self.config.ignore_errors
if report_it:
typ, msg = sys.exc_info()[:2]
+ # NotPython is only raised by PythonFileReporter, which has a
+ # should_be_python() method.
if typ is NotPython and not fr.should_be_python():
report_it = False
if report_it: