summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/summary.py')
-rw-r--r--coverage/summary.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/summary.py b/coverage/summary.py
index 7eb0f2f..2bf097b 100644
--- a/coverage/summary.py
+++ b/coverage/summary.py
@@ -103,6 +103,6 @@ class SummaryReporter(Reporter):
if self.config.show_missing:
args += ("",)
outfile.write(fmt_coverage % args)
- if not total.n_files:
+ if not total.n_files and not self.config.skip_covered:
raise CoverageException("No data to report.")
return total.n_statements and total.pc_covered