Skip to content

Commit 13e8348

Browse files
Zac-HDBeyondEvil
authored andcommitted
Xdist 2.0 compatibility
1 parent 658c713 commit 13e8348

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_selenium/safety.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def pytest_addoption(parser):
2222

2323

2424
def pytest_configure(config):
25-
if hasattr(config, "slaveinput"):
26-
return # xdist slave
25+
if hasattr(config, "workerinput"):
26+
return # avoid doing anything if this is an xdist worker node
2727
config.option.sensitive_url = (
2828
config.getoption("sensitive_url")
2929
or config.getini("sensitive_url")

0 commit comments

Comments
 (0)