cast rerun count to int

Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
This commit is contained in:
Oleksii Lymarenko 2018-10-15 18:38:42 +03:00 committed by Anton Danchenko
parent 9d1debbf28
commit dd7132f7d2
No known key found for this signature in database
GPG Key ID: C2D4819B698627E4
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ def pytest_runtest_setup(item):
def pytest_runtest_protocol(item, nextitem):
rerun_count = item.config.getoption('rerun_count')
rerun_count = int(item.config.getoption('rerun_count'))
for i in range(rerun_count):
reports = runtestprotocol(item, nextitem=nextitem)
for report in reports: