summaryrefslogtreecommitdiffstats
path: root/Lib/test/_test_multiprocessing.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-11 00:57:53 (GMT)
committerGitHub <noreply@github.com>2023-10-11 00:57:53 (GMT)
commitf901f56313610389027cb4eae80d1d4b071aef69 (patch)
treec8502241e20460296678d288656b8d6d6d2fed66 /Lib/test/_test_multiprocessing.py
parent7ca4aafa0ea94a4bb778b34e9c2e85b07f550c11 (diff)
downloadcpython-f901f56313610389027cb4eae80d1d4b071aef69.zip
cpython-f901f56313610389027cb4eae80d1d4b071aef69.tar.gz
cpython-f901f56313610389027cb4eae80d1d4b071aef69.tar.bz2
gh-110656: Fix logging test_post_fork_child_no_deadlock() if ASAN (#110657)
Skip test_post_fork_child_no_deadlock() if Python is built with ASAN. Add support.HAVE_ASAN_FORK_BUG.
Diffstat (limited to 'Lib/test/_test_multiprocessing.py')
-rw-r--r--Lib/test/_test_multiprocessing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index d3e7135..650fbad 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -78,10 +78,10 @@ except ImportError:
msvcrt = None
-if support.check_sanitizer(address=True):
+if support.HAVE_ASAN_FORK_BUG:
# gh-89363: Skip multiprocessing tests if Python is built with ASAN to
# work around a libasan race condition: dead lock in pthread_create().
- raise unittest.SkipTest("libasan has a pthread_create() dead lock")
+ raise unittest.SkipTest("libasan has a pthread_create() dead lock related to thread+fork")
def latin(s):