bpo-33316: PyThread_release_lock always fails by native-api · Pull Request #6541 · python/cpython (original) (raw)
I don't readily see how it's possible to test this. There's no error code or anything at PyThread_release_lock
level, only an error message, and only if I patch the source (set thread_debug
to 1
at https://github.com/python/cpython/blob/master/Python/thread.c#L48).
I could test LeaveNonRecursiveMutex
directly. But current tests only test the public API, and PyThread_*
and *Mutex
are not parts of it, so it's unclear where I should put the tests and what spec I should test against.
I can think of something myself but would like to receive some feedback so that I don't have to redo it afterwards.