Thomas Grainger
Thomas Grainger
@fantix can you enable this setting so that external contributors can run PRs? https://github.com/MagicStack/uvloop/settings/actions#actions_fork_pr_approvals_first_time_contributor_new_users
> If there was a way to access the loop that TestClient started up, you can use: ```python @contextlib.asynccontextmanager async def some_function(app): async with some_resource() as v: app.v = v...
FastAPI *needs* context manager support for lifespan
> Could you please edit the title/description to specify that this only affects TestClient? A bit more context in the description as to what you're trying to achieve would help...
Oh yeah this needs doing lol
Wait no. Doing everything via httpx is obviously better
> ExceptionGroup([SystemExit()]) needs special handling in the interpreter ExceptionGroup([KeyboardInterrupt()]) needs special handling also https://github.com/python/cpython/pull/21956/files#diff-75445bdc3b6b3dd20b005698fa165444R290
@tiran > (Also someone should tell upstream cpython to make it a DeprecationWarning, not a UserWarning.)
@tiran it would be good if you could remove the `:` from the warning message so I can use simplefilter
@tiran https://bugs.python.org/issue44354