async def test_named_pipe_runner_proactor_loop(proactor_loop, app, pipe_name) -> None: runner = web.AppRunner(app) await runner.setup() pipe = web.NamedPipeSite(runner, pipe_name) await pipe.start() await runner.cleanup()
async def test_named_pipe_runner_wrong_loop( app: Any, selector_loop: Any, pipe_name: Any ) -> None: runner = web.AppRunner(app) await runner.setup() with pytest.raises(RuntimeError): web.NamedPipeSite(runner, pipe_name)