Commit 97a1bf2
committed
test: set interface=asgi3 to skip uvicorn's 3.14-deprecated autodetect
uvicorn.Config.load() calls asyncio.iscoroutinefunction during interface
autodetection. Python 3.14 deprecates that function; under
filterwarnings=error the DeprecationWarning crashes the server thread
before it binds, and the test's WS client times out waiting for a
handshake that never comes.
This only surfaced with the in-thread conversion — the old subprocess
runner wasn't subject to pytest's warning filters. Starlette is asgi3,
so declare it and skip the autodetect.1 parent 400f541 commit 97a1bf2
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
0 commit comments