From a0b6392d611aaca33446258b28e32357b63e2e48 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Fri, 17 Apr 2026 23:25:56 -0700 Subject: [PATCH] Fix async audio tests @pytest.mark.asyncio -> @pytest.mark.anyio --- tests/test_audio_limits.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_audio_limits.py b/tests/test_audio_limits.py index 596ebcfd6..b1759f13d 100644 --- a/tests/test_audio_limits.py +++ b/tests/test_audio_limits.py @@ -26,7 +26,7 @@ async def read(self, _size: int = -1) -> bytes: class TestAudioUploadLimits: - @pytest.mark.asyncio + @pytest.mark.anyio async def test_save_upload_with_limit_writes_file(self): upload = FakeUpload([b"a" * 8, b"b" * 4]) @@ -37,7 +37,7 @@ async def test_save_upload_with_limit_writes_file(self): finally: Path(path).unlink(missing_ok=True) - @pytest.mark.asyncio + @pytest.mark.anyio async def test_save_upload_with_limit_rejects_oversize_and_cleans_up(self): upload = FakeUpload([b"a" * 16, b"b" * 16, b"c"])