[3.13] gh-117657: Skip tests that use threads after fork (GH-122194) (#122198)

These tests fail when run under thread sanitizer due to the use of fork
and threads.
(cherry picked from commit 64e221d7ad)

Co-authored-by: Sam Gross <colesbury@gmail.com>
This commit is contained in:
Miss Islington (bot) 2024-07-23 23:00:21 +02:00 committed by GitHub
parent 1d601a1da1
commit e0f540d413
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -1903,6 +1903,7 @@ class TestFork(unittest.IsolatedAsyncioTestCase):
wait_process(pid, exitcode=0)
@hashlib_helper.requires_hashdigest('md5')
@support.skip_if_sanitizer("TSAN doesn't support threads after fork", thread=True)
def test_fork_signal_handling(self):
self.addCleanup(multiprocessing_cleanup_tests)
@ -1949,6 +1950,7 @@ class TestFork(unittest.IsolatedAsyncioTestCase):
self.assertTrue(child_handled.is_set())
@hashlib_helper.requires_hashdigest('md5')
@support.skip_if_sanitizer("TSAN doesn't support threads after fork", thread=True)
def test_fork_asyncio_run(self):
self.addCleanup(multiprocessing_cleanup_tests)
@ -1968,6 +1970,7 @@ class TestFork(unittest.IsolatedAsyncioTestCase):
self.assertEqual(result.value, 42)
@hashlib_helper.requires_hashdigest('md5')
@support.skip_if_sanitizer("TSAN doesn't support threads after fork", thread=True)
def test_fork_asyncio_subprocess(self):
self.addCleanup(multiprocessing_cleanup_tests)