Skip to content

Commit 50a6672

Browse files
committed
added python 3 support
1 parent 394921b commit 50a6672

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytest-cov/pytest_cov.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ def pytest_terminal_summary(self, terminalreporter):
155155
return
156156
if not (self.failed and self.options.no_cov_on_fail):
157157
total = self.cov_controller.summary(terminalreporter.writer)
158-
if total < self.options.cov_min:
158+
cov_min = self.options.cov_min
159+
if cov_min is not None and total < cov_min:
159160
raise CoverageError(('Required test coverage of %d%% not '
160161
'reached. Total coverage: %.2f%%')
161162
% (self.options.cov_min, total))

0 commit comments

Comments
 (0)