summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.hgignore1
-rw-r--r--coverage/summary.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/.hgignore b/.hgignore
index c13de37d..9395c00e 100644
--- a/.hgignore
+++ b/.hgignore
@@ -15,6 +15,7 @@ syntax: glob
# Stuff generated by editors.
.idea/
+.vimtags
# Stuff in the root.
build
diff --git a/coverage/summary.py b/coverage/summary.py
index 46aa4f5c..59d1b7c4 100644
--- a/coverage/summary.py
+++ b/coverage/summary.py
@@ -100,6 +100,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