Exemplo n.º 1
0
def async_process_runner():
    runner = AsyncProcessRunner(
        # This allows running pytest with -s and observing the output
        debug_fn=lambda line: print(line)
    )
    yield runner
    runner.kill()
Exemplo n.º 2
0
def async_process_runner(event_loop):
    runner = AsyncProcessRunner(
        # This allows running pytest with -s and observing the output
        debug_fn=lambda line: print(line))
    yield runner
    try:
        runner.kill()
    except ProcessLookupError:
        pass