Limit anyio tests to installed backends

This commit is contained in:
thePR0M3TH3AN committed 2025-08-05 20:14:42 -04:00
1 parent dc7673c7e0
commit 91bea60928
1 file changed
+8
+8
View File
@@ -1,7 +1,15 @@
import importlib.util
import logging
import pytest
@pytest.fixture(
params=["asyncio"] + (["trio"] if importlib.util.find_spec("trio") else [])
)
def anyio_backend(request):
return request.param
@pytest.fixture(autouse=True)
def mute_logging():
logging.getLogger().setLevel(logging.WARNING)