Skip to content

Commit 3e209fe

Browse files
authored
Merge pull request #127 from The-Compiler/type
Pass a type instead of string to parser.addoption
2 parents 6d11931 + df866f0 commit 3e209fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytest_cov/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def pytest_addoption(parser):
6868
group.addoption('--no-cov-on-fail', action='store_true', default=False,
6969
help='do not report coverage if test run fails, '
7070
'default: False')
71-
group.addoption('--cov-fail-under', action='store', metavar='MIN', type='int',
71+
group.addoption('--cov-fail-under', action='store', metavar='MIN', type=int,
7272
help='Fail if the total coverage is less than MIN.')
7373
group.addoption('--cov-append', action='store_true', default=False,
7474
help='do not delete coverage but append to current, '

0 commit comments

Comments
 (0)