Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly close memory object streams #1253

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

ianthomas23
Copy link
Collaborator

Fixes #1252.

When using anyio MemoryObjectReceiveStream and MemoryObjectSendStream we must explicitly close them when we have finished with them. This wasn't necessary with anyio 4.3.0 but is with 4.4.0 as otherwise warnings/errors are issued which break our CI.

This is only actually an issue in CI as our only explicit use of memory object streams is in TestSession.

@ianthomas23 ianthomas23 force-pushed the 1252_close_memory_object_streams branch from 3058687 to e263710 Compare June 28, 2024 13:31
@ianthomas23
Copy link
Collaborator Author

This fixes all the local CI runs, except the docs which is some other problem. I am self-merging.

@ianthomas23 ianthomas23 merged commit 5641346 into main Jul 1, 2024
24 of 32 checks passed
@ianthomas23 ianthomas23 deleted the 1252_close_memory_object_streams branch July 1, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test failures with anyio 4.4.0
2 participants