Fix linting

This commit is contained in:
Bruno Oliveira
2019-02-15 09:31:14 -02:00
parent 486fa25bcb
commit 26d0fcabf6

View File

@@ -250,13 +250,13 @@ class WorkerController(object):
basetemp = self.config._tmpdirhandler.getbasetemp() basetemp = self.config._tmpdirhandler.getbasetemp()
option_dict["basetemp"] = str(basetemp.join(name)) option_dict["basetemp"] = str(basetemp.join(name))
self.config.hook.pytest_configure_node(node=self) self.config.hook.pytest_configure_node(node=self)
remote_module = self.config.hook.pytest_xdist_getremotemodule() remote_module = self.config.hook.pytest_xdist_getremotemodule()
self.channel = self.gateway.remote_exec(remote_module) self.channel = self.gateway.remote_exec(remote_module)
# change sys.path only for remote workers # change sys.path only for remote workers
change_sys_path = not self.gateway.spec.popen change_sys_path = not self.gateway.spec.popen
self.channel.send((self.workerinput, args, option_dict, change_sys_path)) self.channel.send((self.workerinput, args, option_dict, change_sys_path))
if self.putevent: if self.putevent:
self.channel.setcallback(self.process_from_remote, endmarker=self.ENDMARK) self.channel.setcallback(self.process_from_remote, endmarker=self.ENDMARK)