class ProcessedRunner(BaseRunner): "Run tests using fork in different processes." def __init__(self, max_processes=1): from processed_helper import ProcessedRunnerHelper BaseRunner.__init__(self) self._helper = ProcessedRunnerHelper(max_processes) def run(self, fixture): BaseRunner.run(self, fixture) self._helper.register_fixture(fixture) def done(self): self._helper.start(self.reporter) BaseRunner.done(self)
def __init__(self, max_processes=1): from processed_helper import ProcessedRunnerHelper BaseRunner.__init__(self) self._helper = ProcessedRunnerHelper(max_processes)