aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/_test_multiprocessing.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-11 02:57:53 +0200
committerGitHub <noreply@github.com>2023-10-11 02:57:53 +0200
commitf901f56313610389027cb4eae80d1d4b071aef69 (patch)
treec8502241e20460296678d288656b8d6d6d2fed66 /Lib/test/_test_multiprocessing.py
parent7ca4aafa0ea94a4bb778b34e9c2e85b07f550c11 (diff)
downloadcpython-f901f56313610389027cb4eae80d1d4b071aef69.tar.gz
cpython-f901f56313610389027cb4eae80d1d4b071aef69.zip
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 d3e713594b0..650fbadb50f 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):