summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
authorgarar <devnull@localhost>2015-08-12 14:19:58 +0000
committergarar <devnull@localhost>2015-08-12 14:19:58 +0000
commitd51330ce8d1ccc566fc1e01aa660788f68ff07b8 (patch)
treef72366fc465013cba888d724200990a03480d799 /coverage/summary.py
parent01010e8d4d85634797a12b755ac3671fce65afba (diff)
downloadpython-coveragepy-d51330ce8d1ccc566fc1e01aa660788f68ff07b8.tar.gz
Do not raise an exception for empty summary when using skip_covered.
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