Skip to content

Commit a03f683

Browse files
bluetechsallner
authored andcommitted
Adjust parallel check for pytest-xdist slaveinput -> workerinput renaming
pytest-xdist no longer sets the old name.
1 parent c555b12 commit a03f683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_rerunfailures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def pytest_runtest_protocol(item, nextitem):
266266
# first item if necessary
267267
check_options(item.session.config)
268268
delay = get_reruns_delay(item)
269-
parallel = hasattr(item.config, "slaveinput")
269+
parallel = hasattr(item.config, "slaveinput") or hasattr(item.config, "workerinput")
270270
item.execution_count = 0
271271

272272
need_to_run = True

0 commit comments

Comments
 (0)