]> granicus.if.org Git - python/commit
closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)
authorBenjamin Peterson <benjamin@python.org>
Wed, 12 Sep 2018 20:48:03 +0000 (13:48 -0700)
committerGitHub <noreply@github.com>
Wed, 12 Sep 2018 20:48:03 +0000 (13:48 -0700)
commit5b10d5111d7a855297654af9045f8907b7d3dd08
tree688798aa3ff14555f1bc6890df13c633bbc201a5
parent0bd1a2dcfdf36b181385ae61361e7692f4ebb0fd
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.
Doc/library/threading.rst
Lib/test/test_threadsignals.py