Skip to content

Commit fd4c956

Browse files
committed
Pass the precision on the nulled total (seems that there's some caching goiong on that will mess up the following report calls).
1 parent 78c9c4e commit fd4c956

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytest_cov/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def summary(self, stream):
152152
"""Produce coverage reports."""
153153

154154
with _backup(self.cov, 'config'):
155-
total = self.cov.report(ignore_errors=True, output_format='total', file=_NullFile)
155+
total = self.cov.report(ignore_errors=True, output_format='total', precision=self.cov_precision, file=_NullFile)
156156

157157
# Output coverage section header.
158158
if len(self.node_descs) == 1:

0 commit comments

Comments
 (0)