summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_unix_events.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-07-23 21:00:21 (GMT)
committerGitHub <noreply@github.com>2024-07-23 21:00:21 (GMT)
commite0f540d4131b668c85db3721acceb20316cc45e8 (patch)
tree22f86a3ba0f6e6f8fe8c819aed272fe622117e8c /Lib/test/test_asyncio/test_unix_events.py
parent1d601a1da1bec7badcb9edc2a597a1d8003f1dc3 (diff)
downloadcpython-e0f540d4131b668c85db3721acceb20316cc45e8.zip
cpython-e0f540d4131b668c85db3721acceb20316cc45e8.tar.gz
cpython-e0f540d4131b668c85db3721acceb20316cc45e8.tar.bz2
[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 64e221d7ada8f6c20189035c7e81503f4c914f04) Co-authored-by: Sam Gross <colesbury@gmail.com>
Diffstat (limited to 'Lib/test/test_asyncio/test_unix_events.py')
-rw-r--r--Lib/test/test_asyncio/test_unix_events.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py
index 9452213..0e5488d 100644
--- a/Lib/test/test_asyncio/test_unix_events.py
+++ b/Lib/test/test_asyncio/test_unix_events.py
@@ -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)