Remove pytest InvocationParams backward compat

It's available since pytest 5.2, and pytest-xdist requires pytest>=6.2.
This commit is contained in:
Ran Benita
2024-03-23 20:40:54 +02:00
parent 74edbeb7c7
commit 00dc8eeaff
3 changed files with 3 additions and 26 deletions

View File

@@ -258,12 +258,8 @@ class WorkerController:
def setup(self):
self.log("setting up worker session")
spec = self.gateway.spec
if hasattr(self.config, "invocation_params"):
args = [str(x) for x in self.config.invocation_params.args or ()]
option_dict = {}
else:
args = self.config.args
option_dict = vars(self.config.option)
args = [str(x) for x in self.config.invocation_params.args or ()]
option_dict = {}
if not spec.popen or spec.chdir:
args = make_reltoroot(self.nodemanager.roots, args)
if spec.popen: