-
Notifications
You must be signed in to change notification settings - Fork 295
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
Implement _thread.RLock #1922
base: main
Are you sure you want to change the base?
Implement _thread.RLock #1922
Conversation
Probably not related to the PR, but got this failure during CI on Ubuntu:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Were there any other tests running in parallel? Looks like not-parallel-safe issue. |
I also saw it on github CI (see snippet below, not sure if you have access, but here are the raw logs) where each framework runs one after the other so there should be no parallel issues (although cpython and ironpython stuff could be running at the same time I guess). Also weird is that the
|
I don't have access to those logs but I was able to see the failures in one of your failed runs in this PR and have reproduced it locally. It only happens on Mono. It is caused by the implementation of The test used to pass without problems because it is being skipped if |
I'm fine with hiding the constants on Mono. I was going to ask how we'd accomplish that but I guess a simple |
Implement
_thread.RLock
and enable sometest_threading
tests.I got bit by
functools.lru_cache
which uses a dummy lock if_thread.RLock
is not available. 😢