File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import pytest
55import pytest_asyncio
66
7- import uvloop
87from hypercorn .asyncio import serve
98from hypercorn .config import Config
109
@@ -34,11 +33,6 @@ async def server(config):
3433 await task
3534
3635
37- @pytest .fixture (scope = "session" )
38- def event_loop_policy ():
39- return uvloop .EventLoopPolicy ()
40-
41-
4236@pytest_asyncio .fixture (loop_scope = "session" )
4337async def client (server ):
4438 api = await asyncio .to_thread (aiopenapi3 .OpenAPI .load_sync , f"http://{ server .bind [0 ]} /v1/openapi.json" )
Original file line number Diff line number Diff line change 1111import pytest
1212import pytest_asyncio
1313
14- import uvloop
1514from hypercorn .asyncio import serve
1615from hypercorn .config import Config
1716
@@ -39,11 +38,6 @@ def config(unused_tcp_port_factory):
3938 return c
4039
4140
42- @pytest .fixture (scope = "session" )
43- def event_loop_policy ():
44- return uvloop .EventLoopPolicy ()
45-
46-
4741@pytest_asyncio .fixture (loop_scope = "session" )
4842async def server (config ):
4943 event_loop = asyncio .get_running_loop ()
You can’t perform that action at this time.
0 commit comments