summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threading.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_threading.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_threading.py')
-rw-r--r--Lib/test/test_threading.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index f8b8194..00a6437 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -40,19 +40,12 @@ threading_helper.requires_working_threading(module=True)
platforms_to_skip = ('netbsd5', 'hp-ux11')
-# gh-89363: Skip fork() test if Python is built with Address Sanitizer (ASAN)
-# to work around a libasan race condition, dead lock in pthread_create().
-skip_if_asan_fork = support.skip_if_sanitizer(
- "libasan has a pthread_create() dead lock",
- address=True)
-
-
def skip_unless_reliable_fork(test):
if not support.has_fork_support:
return unittest.skip("requires working os.fork()")(test)
if sys.platform in platforms_to_skip:
return unittest.skip("due to known OS bug related to thread+fork")(test)
- if support.check_sanitizer(address=True):
+ if support.HAVE_ASAN_FORK_BUG:
return unittest.skip("libasan has a pthread_create() dead lock related to thread+fork")(test)
return test