summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-12 20:48:03 (GMT)
committerGitHub <noreply@github.com>2018-09-12 20:48:03 (GMT)
commit5b10d5111d7a855297654af9045f8907b7d3dd08 (patch)
tree688798aa3ff14555f1bc6890df13c633bbc201a5 /Doc
parent0bd1a2dcfdf36b181385ae61361e7692f4ebb0fd (diff)
downloadcpython-5b10d5111d7a855297654af9045f8907b7d3dd08.zip
cpython-5b10d5111d7a855297654af9045f8907b7d3dd08.tar.gz
cpython-5b10d5111d7a855297654af9045f8907b7d3dd08.tar.bz2
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.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/threading.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index b94021b..e6185c5 100644
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -400,7 +400,8 @@ All methods are executed atomically.
The *timeout* parameter is new.
.. versionchanged:: 3.2
- Lock acquires can now be interrupted by signals on POSIX.
+ Lock acquisition can now be interrupted by signals on POSIX if the
+ underlying threading implementation supports it.
.. method:: release()