]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-117657: Skip tests that use threads after fork (#122194)
authorSam Gross <colesbury@gmail.com>
Tue, 23 Jul 2024 20:30:49 +0000 (16:30 -0400)
committerGitHub <noreply@github.com>
Tue, 23 Jul 2024 20:30:49 +0000 (16:30 -0400)
These tests fail when run under thread sanitizer due to the use of fork
and threads.

Lib/test/test_asyncio/test_unix_events.py

index 4966775acac7be3b31327446ff8ff5e2f8eabb7d..9ae54b6887010b260a2ee0e9ed4eba337da38a59 100644 (file)
@@ -1212,6 +1212,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)
 
@@ -1258,6 +1259,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)
 
@@ -1277,6 +1279,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)