diff options
author | Sam Gross <colesbury@gmail.com> | 2024-07-23 20:30:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-23 20:30:49 (GMT) |
commit | 64e221d7ada8f6c20189035c7e81503f4c914f04 (patch) | |
tree | 8b91f4e6e2db3d4f4f16c32301a6e9e07b136094 /Lib/test/test_asyncio | |
parent | 33d32faa580fb776cb660e9cc8aa7e45c6c68c08 (diff) | |
download | cpython-64e221d7ada8f6c20189035c7e81503f4c914f04.zip cpython-64e221d7ada8f6c20189035c7e81503f4c914f04.tar.gz cpython-64e221d7ada8f6c20189035c7e81503f4c914f04.tar.bz2 |
gh-117657: Skip tests that use threads after fork (#122194)
These tests fail when run under thread sanitizer due to the use of fork
and threads.
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r-- | Lib/test/test_asyncio/test_unix_events.py | 3 |
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 4966775..9ae54b6 100644 --- a/Lib/test/test_asyncio/test_unix_events.py +++ b/Lib/test/test_asyncio/test_unix_events.py @@ -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) |