Skip to content

Commit 08fb7ee

Browse files
committed
uv - EventLoopPolicy deprecation
DeprecationWarning: 'asyncio.AbstractEventLoopPolicy' is deprecated and slated for removal in Python 3.16
1 parent 7f67de4 commit 08fb7ee

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

tests/apiv1_test.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import pytest
55
import pytest_asyncio
66

7-
import uvloop
87
from hypercorn.asyncio import serve
98
from 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")
4337
async def client(server):
4438
api = await asyncio.to_thread(aiopenapi3.OpenAPI.load_sync, f"http://{server.bind[0]}/v1/openapi.json")

tests/apiv2_test.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import pytest
1212
import pytest_asyncio
1313

14-
import uvloop
1514
from hypercorn.asyncio import serve
1615
from 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")
4842
async def server(config):
4943
event_loop = asyncio.get_running_loop()

0 commit comments

Comments
 (0)