Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
 def __init__(self, max_processes=1):
     from processed_helper import ProcessedRunnerHelper
     BaseRunner.__init__(self)
     self._helper = ProcessedRunnerHelper(max_processes)
Пример #4
0
 def __init__(self, max_processes=1):
     from processed_helper import ProcessedRunnerHelper
     BaseRunner.__init__(self)
     self._helper = ProcessedRunnerHelper(max_processes)