-
-
Notifications
You must be signed in to change notification settings - Fork 953
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure TestClient requests run in the same EventLoop as lifespan (#1213
) * ensure TestClient requests run in the same EventLoop as lifespan * for lifespan task verification, use native task identity rather than anyio.abc.TaskInfo equality agronholm/anyio#324 * remove redundant pragma: no cover * it's now a loop_id not a threading.ident * replace Protocol with plain Callable TypeAlias * use lifespan_context to actually open a task group trio should complain if used incorrectly here. * assign self.portal once, schedule reset immediately after assignment * inline apps into their tests * make task/loop trackers nonlocals
- Loading branch information
Showing
2 changed files
with
157 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters