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

Fix tests in pypy. #19

Merged
merged 1 commit into from
Jan 9, 2024
Merged

Fix tests in pypy. #19

merged 1 commit into from
Jan 9, 2024

Conversation

aebrahim
Copy link
Member

@aebrahim aebrahim commented Jan 9, 2024

Tests were failing due to invalid (and unnecessary) test code when optimized.

Tests were failing due to invalid (and unnecessary) test code when
optimized.
@aebrahim aebrahim requested a review from mattalbr January 9, 2024 17:45
Copy link
Collaborator

@mattalbr mattalbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah was the problem that asyncio.Lock isn't thread safe and we created one lock for all the threads?

@aebrahim
Copy link
Member Author

aebrahim commented Jan 9, 2024

Ah was the problem that asyncio.Lock isn't thread safe and we created one lock for all the threads?

Yeah, exactly. It appears to only actually encounter issues in pypy running in optimized mode. I think it is accidentally thread safe most of the time just as an implementation detail, but it doesn't seem to be promised in the API.

@aebrahim aebrahim merged commit b7840a9 into DelfinaCare:main Jan 9, 2024
51 checks passed
@aebrahim aebrahim deleted the fix_pypy_test branch January 9, 2024 17:56
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.

2 participants