Skip to content

Fix test failures caused by AnyIO 4 - #18

Open
chen64811-ship-it wants to merge 1 commit into
testdrivenio:masterfrom
chen64811-ship-it:fix/test-dependency-compatibility
Open

Fix test failures caused by AnyIO 4#18
chen64811-ship-it wants to merge 1 commit into
testdrivenio:masterfrom
chen64811-ship-it:fix/test-dependency-compatibility

Conversation

@chen64811-ship-it

Copy link
Copy Markdown

Summary

  • Pin AnyIO to a compatible 3.x version.
  • Restore compatibility with Starlette 0.21.0's TestClient.

Problem

The unresolved transitive dependency currently installs AnyIO 4.14.2.
Starlette 0.21.0 expects anyio.start_blocking_portal, which is not available in AnyIO 4, causing all tests to fail.

Verification

docker compose exec web pytest -q

@chen64811-ship-it chen64811-ship-it changed the title Fix test compatibility with AnyIO 4 Fix test failures caused by AnyIO 4 Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant