From d819a184a1985ff7dd89e7789494ccf0bf84f81c Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sat, 18 Apr 2026 13:13:50 -0400 Subject: [PATCH] test: remove dead anyio_backend fixture and unused pytest imports The anyio_backend fixture is only consumed by pytest-anyio, which is not a dependency of this project (we use pytest-asyncio with asyncio_mode=auto). Also drop the unused pytest import from test_sanity.py. Co-Authored-By: Claude Opus 4.7 --- backend/tests/conftest.py | 7 ------- backend/tests/test_sanity.py | 1 - 2 files changed, 8 deletions(-) diff --git a/backend/tests/conftest.py b/backend/tests/conftest.py index e8f499c..16403a3 100644 --- a/backend/tests/conftest.py +++ b/backend/tests/conftest.py @@ -1,8 +1 @@ """Shared pytest fixtures for backend tests.""" -import asyncio -import pytest - - -@pytest.fixture -def anyio_backend(): - return "asyncio" diff --git a/backend/tests/test_sanity.py b/backend/tests/test_sanity.py index 01d1dfd..9396cff 100644 --- a/backend/tests/test_sanity.py +++ b/backend/tests/test_sanity.py @@ -1,6 +1,5 @@ """Sanity test to verify pytest infrastructure works.""" import asyncio -import pytest def test_sync_sanity():