summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-07-15 21:10:37 (GMT)
committerGitHub <noreply@github.com>2024-07-15 21:10:37 (GMT)
commit6396c77571aee99386a7b5a5863bbe0b8c5df4b1 (patch)
treed90a7889f781242e2828258615bfa61cbf3648b0
parent0a634e3702b7fe688076e0c2caee9cfcb1553154 (diff)
downloadcpython-6396c77571aee99386a7b5a5863bbe0b8c5df4b1.zip
cpython-6396c77571aee99386a7b5a5863bbe0b8c5df4b1.tar.gz
cpython-6396c77571aee99386a7b5a5863bbe0b8c5df4b1.tar.bz2
[3.13] gh-117657: Skip tests that fork with threads under TSan (GH-121599) (#121819)
This avoids messages like: ThreadSanitizer: starting new threads after multi-threaded fork is not supported. Dying (set die_after_fork=0 to override) (cherry picked from commit 82a4dac9f6131954c32dac9d0277283fc5b499a9) Co-authored-by: Sam Gross <colesbury@gmail.com>
-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 4223d10..2b7e692 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -3971,6 +3971,7 @@ class ConfigDictTest(BaseTest):
)
manager.assert_not_called()
+ @skip_if_tsan_fork
@support.requires_subprocess()
def test_multiprocessing_queues(self):
# See gh-119819
@@ -4283,6 +4284,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):
"""
@@ -5183,6 +5185,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