Skip to content

Commit bc06743

Browse files
authored
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).
1 parent 1b8f236 commit bc06743

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Lib/test/_test_multiprocessing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080

8181
if support.check_sanitizer(address=True):
82-
# bpo-45200: Skip multiprocessing tests if Python is built with ASAN to
82+
# gh-89363: Skip multiprocessing tests if Python is built with ASAN to
8383
# work around a libasan race condition: dead lock in pthread_create().
8484
raise unittest.SkipTest("libasan has a pthread_create() dead lock")
8585

Lib/test/test_threading.py

+4
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,10 @@ def background_thread(evt):
572572
self.assertEqual(err, b'')
573573

574574
@support.requires_fork()
575+
# gh-89363: Skip multiprocessing tests if Python is built with ASAN to
576+
# work around a libasan race condition: dead lock in pthread_create().
577+
@support.skip_if_sanitizer("libasan has a pthread_create() dead lock",
578+
address=True)
575579
def test_is_alive_after_fork(self):
576580
# Try hard to trigger #18418: is_alive() could sometimes be True on
577581
# threads that vanished after a fork.

0 commit comments

Comments
 (0)