def pytest_configure_node(self, node): """xdist hook""" prefs = dict(self._prefs) for k, v in prefs.items(): if isinstance(v, type): prefs[k] = ('TYPE', repr(v)) node.slaveinput['brian_prefs'] = prefs node.slaveinput[ 'fail_for_not_implemented'] = self.fail_for_not_implemented
def pytest_configure_node(self, node): """xdist hook""" prefs = dict(self._pref_plugin.prefs) for k, v in prefs.items(): if isinstance(v, type): prefs[k] = ('TYPE', repr(v)) node.workerinput['brian_prefs'] = prefs node.workerinput['fail_for_not_implemented'] = self._pref_plugin.fail_for_not_implemented node.workerinput['device'] = self._pref_plugin.device node.workerinput['device_options'] = self._pref_plugin.device_options