Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-117657: Skip tests that fork with threads under TSan #121599

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Lib/test/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -3972,6 +3972,7 @@ def test_config_queue_handler_invalid_config_does_not_create_multiprocessing_man
)
manager.assert_not_called()

@skip_if_tsan_fork
@support.requires_subprocess()
def test_multiprocessing_queues(self):
# See gh-119819
Expand Down Expand Up @@ -4284,6 +4285,7 @@ def test_queue_listener_with_multiple_handlers(self):
import multiprocessing
from unittest.mock import patch

@skip_if_tsan_fork
@threading_helper.requires_working_threading()
class QueueListenerTest(BaseTest):
"""
Expand Down Expand Up @@ -5184,6 +5186,7 @@ def _extract_logrecord_process_name(key, logMultiprocessing, conn=None):
else:
return results

@skip_if_tsan_fork
def test_multiprocessing(self):
support.skip_if_broken_multiprocessing_synchronize()
multiprocessing_imported = 'multiprocessing' in sys.modules
Expand Down
Loading