Skip to content

Commit a1d778f

Browse files
authored
Test with uvloop (#22)
1 parent b846d05 commit a1d778f

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ repository = "https://github.com/vrslev/stompman"
2121

2222
[tool.uv]
2323
dev-dependencies = [
24+
"anyio~=4.4.0",
2425
"mypy~=1.10.0",
25-
"ruff~=0.4.8",
26-
"pytest~=8.2.2",
2726
"pytest-cov~=5.0.0",
28-
"anyio~=4.4.0",
27+
"pytest~=8.2.2",
28+
"ruff~=0.4.8",
29+
"uvloop~=0.19.0",
2930
]
3031

3132
[build-system]

tests/conftest.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import pytest
22

33

4-
@pytest.fixture(scope="session", autouse=True)
5-
def anyio_backend() -> str:
6-
return "asyncio"
4+
@pytest.fixture(
5+
params=[
6+
pytest.param(("asyncio", {"use_uvloop": True}), id="asyncio+uvloop"),
7+
pytest.param(("asyncio", {"use_uvloop": False}), id="asyncio"),
8+
],
9+
autouse=True,
10+
)
11+
def anyio_backend(request: pytest.FixtureRequest) -> object:
12+
return request.param

0 commit comments

Comments
 (0)