]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 12 Sep 2018 21:10:56 +0000 (14:10 -0700)
committerGitHub <noreply@github.com>
Wed, 12 Sep 2018 21:10:56 +0000 (14:10 -0700)
commitb608fcd444c00ff37a19d34e4eeadb1221fb6436
tree5d8fbb63e4a3d1cc2b0fa1d57f714da70fbddab2
parent329ea4ef7cc3a907a64c6f0702fc93206b6744de
closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)

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 5b10d5111d7a855297654af9045f8907b7d3dd08)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
Doc/library/threading.rst
Lib/test/test_threadsignals.py