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 5b8c903..aed8335 100644
--- a/coverage/summary.py
+++ b/coverage/summary.py
@@ -99,4 +99,4 @@ class SummaryReporter(Reporter):
args += ("",)
outfile.write(fmt_coverage % args)
- return total.pc_covered
+ return total.n_statements and total.pc_covered