Skip to content

Commit 82a4dac

Browse files
authored
gh-117657: Skip tests that fork with threads under TSan (#121599)
This avoids messages like: ThreadSanitizer: starting new threads after multi-threaded fork is not supported. Dying (set die_after_fork=0 to override)
1 parent 05d4137 commit 82a4dac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_logging.py

+3
Original file line numberDiff line numberDiff line change
@@ -3972,6 +3972,7 @@ def test_config_queue_handler_invalid_config_does_not_create_multiprocessing_man
39723972
)
39733973
manager.assert_not_called()
39743974

3975+
@skip_if_tsan_fork
39753976
@support.requires_subprocess()
39763977
def test_multiprocessing_queues(self):
39773978
# See gh-119819
@@ -4284,6 +4285,7 @@ def test_queue_listener_with_multiple_handlers(self):
42844285
import multiprocessing
42854286
from unittest.mock import patch
42864287

4288+
@skip_if_tsan_fork
42874289
@threading_helper.requires_working_threading()
42884290
class QueueListenerTest(BaseTest):
42894291
"""
@@ -5184,6 +5186,7 @@ def _extract_logrecord_process_name(key, logMultiprocessing, conn=None):
51845186
else:
51855187
return results
51865188

5189+
@skip_if_tsan_fork
51875190
def test_multiprocessing(self):
51885191
support.skip_if_broken_multiprocessing_synchronize()
51895192
multiprocessing_imported = 'multiprocessing' in sys.modules

0 commit comments

Comments
 (0)