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()
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