summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-25 16:02:04 (GMT)
committerGitHub <noreply@github.com>2023-09-25 16:02:04 (GMT)
commitbc06743533b5fea2d5ecdad6dd3caa372c67439f (patch)
treeb22e534823cf3caa392634868973affc60419c13 /Lib/test
parent1b8f2366b38c87b0450d9c15bdfdd4c4a2fc3a01 (diff)
downloadcpython-bc06743533b5fea2d5ecdad6dd3caa372c67439f.zip
cpython-bc06743533b5fea2d5ecdad6dd3caa372c67439f.tar.gz
cpython-bc06743533b5fea2d5ecdad6dd3caa372c67439f.tar.bz2
gh-89363: Skip threading test_is_alive_after_fork() if ASAN (#109835)
Skip test_is_alive_after_fork() of test_threading if Python is built with Address Sanitizer (ASAN).
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/_test_multiprocessing.py2
-rw-r--r--Lib/test/test_threading.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index 730b887..756d680 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -79,7 +79,7 @@ except ImportError:
if support.check_sanitizer(address=True):
- # bpo-45200: Skip multiprocessing tests if Python is built with ASAN to
+ # 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")
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index 6465a44..9c16c40 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -572,6 +572,10 @@ class ThreadTests(BaseTestCase):
self.assertEqual(err, b'')
@support.requires_fork()
+ # gh-89363: Skip multiprocessing tests if Python is built with ASAN to
+ # work around a libasan race condition: dead lock in pthread_create().
+ @support.skip_if_sanitizer("libasan has a pthread_create() dead lock",
+ address=True)
def test_is_alive_after_fork(self):
# Try hard to trigger #18418: is_alive() could sometimes be True on
# threads that vanished after a fork.