diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-11 02:57:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-11 02:57:53 +0200 |
commit | f901f56313610389027cb4eae80d1d4b071aef69 (patch) | |
tree | c8502241e20460296678d288656b8d6d6d2fed66 /Lib/test/_test_multiprocessing.py | |
parent | 7ca4aafa0ea94a4bb778b34e9c2e85b07f550c11 (diff) | |
download | cpython-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.py | 4 |
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): |