aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-07-15 16:43:51 -0400
committerGitHub <noreply@github.com>2024-07-15 16:43:51 -0400
commit82a4dac9f6131954c32dac9d0277283fc5b499a9 (patch)
tree67336bb8af23ad4bf45eeeaec21efe3fee87c278 /Lib/test/test_logging.py
parent05d413764c8ae793b8321c21cb10094c934b8cb3 (diff)
downloadcpython-82a4dac9f6131954c32dac9d0277283fc5b499a9.tar.gz
cpython-82a4dac9f6131954c32dac9d0277283fc5b499a9.zip
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)
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index e6daea2333b..6d688d4b81b 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -3972,6 +3972,7 @@ class ConfigDictTest(BaseTest):
)
manager.assert_not_called()
+ @skip_if_tsan_fork
@support.requires_subprocess()
def test_multiprocessing_queues(self):
# See gh-119819
@@ -4284,6 +4285,7 @@ if hasattr(logging.handlers, 'QueueListener'):
import multiprocessing
from unittest.mock import patch
+ @skip_if_tsan_fork
@threading_helper.requires_working_threading()
class QueueListenerTest(BaseTest):
"""
@@ -5184,6 +5186,7 @@ class LogRecordTest(BaseTest):
else:
return results
+ @skip_if_tsan_fork
def test_multiprocessing(self):
support.skip_if_broken_multiprocessing_synchronize()
multiprocessing_imported = 'multiprocessing' in sys.modules