forked from microsoft/semantic-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create collections with async context manager
With the current version of pytest-asyncio we're using, there's an issue with using async fixtures cached at different scopes when they need the same event loop scope. See: pytest-dev/pytest-asyncio#871 An API breaking change that fixes this is available in 0.24, but fixing this with a context manager here to avoid increasing the blast radius.
- Loading branch information
Showing
1 changed file
with
68 additions
and
57 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