Skip to content

Conversation

ptiurin
Copy link
Contributor

@ptiurin ptiurin commented Sep 19, 2025

Resolves #455

Newer version of anyio breaks our unit tests. Turns out it's due to us using a private method of a lock that has changed since.
While we still can hack around and access the "original" class I have a feeling that it can be refactored soon so it's safer to keep relying on the anyio Lock interface.
In this particular case, when we end up in a situation where we try to unlock not our own lock, we can catch the error raised. However, the error class is very generic - RuntimeError, so we have to also check the error message to some extent.

Copy link

@ptiurin ptiurin marked this pull request as ready for review September 19, 2025 09:53
@ptiurin ptiurin requested a review from a team as a code owner September 19, 2025 09:53
@ptiurin ptiurin merged commit f1cabab into main Sep 19, 2025
15 checks passed
@ptiurin ptiurin deleted the build-relax-anyio-constraint branch September 19, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Relax anyio version so it is compatible with MCP servers

2 participants