Skip to content

Commit 70b2f57

Browse files
committed
Make the summary return 0 instead.
1 parent dc4127a commit 70b2f57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coverage/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def pc_covered(self):
211211
numerator, denominator = self.ratio_covered
212212
pc_cov = (100.0 * numerator) / denominator
213213
else:
214-
pc_cov = 0.0
214+
pc_cov = 100.0
215215
return pc_cov
216216

217217
@property

coverage/summary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ def report(self, morfs, outfile=None):
9999
args += ("",)
100100
outfile.write(fmt_coverage % args)
101101

102-
return total.pc_covered
102+
return total.n_statements and total.pc_covered

0 commit comments

Comments
 (0)