[3.6] closes bpo-34004: Skip lock interruption tests on musl. (GH-9224) by miss-islington · Pull Request #9227 · python/cpython
Returning EINTR from pthread semaphore or lock acquisition is an optional POSIX
feature. musl does not provide this feature, so some threadsignal tests fail
when Python is built against it.
There's no good way to test for musl, so we skip if we're on Linux and not using
glibc pthreads.
Also, hedge in the threading documentation about when we can provide interrupts
from lock acquisition.
(cherry picked from commit 5b10d51)
Co-authored-by: Benjamin Peterson benjamin@python.org