Skip to content

Commit bdb9484

Browse files
committed
pre-commit
1 parent 4407154 commit bdb9484

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pytest_rerunfailures.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -534,15 +534,15 @@ def pytest_runtest_protocol(item, nextitem):
534534
item.ihook.pytest_runtest_logstart(nodeid=item.nodeid, location=item.location)
535535
reports = runtestprotocol(item, nextitem=nextitem, log=False)
536536

537-
# Check all reports to see if any rerun is needed (So teardown report is checked before processing call (test))
537+
# Check all reports to see if any rerun is needed
538+
# (So teardown report is checked before processing call (test))
538539
should_rerun = False
539540
for r in reports:
540541
r.rerun = item.execution_count - 1
541542
should_rerun = not _should_not_rerun(item, r, reruns)
542543
if should_rerun:
543544
break
544545

545-
546546
for report in reports: # 3 reports: setup, call, teardown
547547
if not should_rerun:
548548
# last run or no failure detected, log normally

0 commit comments

Comments
 (0)