You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: remove threading from test to avoid event loop conflicts
The test was using a separate ServerThread that created its own event
loop via anyio.run(). This caused conflicts with the test's event loop
in Python 3.10 with lowest-direct dependencies, resulting in:
ValueError: The future belongs to a different loop than the one
specified as the loop argument
Replace ServerThread with an async context manager (run_app_lifespan)
that runs the Starlette lifespan in the same event loop as the test.
This is simpler and avoids cross-thread event loop issues.
Also update pragma comments to 'lax no cover' for timeout handlers
that have non-deterministic coverage in parallel test execution.
Github-Issue: #1648
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments