Skip to content

Commit 452dfb9

Browse files
committed
Use pytest.mark.anyio instead of asyncio
1 parent 36805b6 commit 452dfb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/server/test_cancel_handling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def cancel(self):
3131
asyncio.create_task(self.send(ServerResult(error=types.ErrorData(code=-32800, message="Request cancelled"))))
3232

3333

34-
@pytest.mark.asyncio
34+
@pytest.mark.anyio
3535
async def test_cancelled_request_no_double_response():
3636
"""Verify server handles cancelled requests without double response."""
3737

@@ -90,7 +90,7 @@ async def slow_handler(req):
9090
assert response_count == 1, f"Expected 1 response, got {response_count}"
9191

9292

93-
@pytest.mark.asyncio
93+
@pytest.mark.anyio
9494
async def test_server_remains_functional_after_cancel():
9595
"""Verify server can handle new requests after a cancellation."""
9696

0 commit comments

Comments
 (0)