From 3774d9f7b56871372ac278e2c2d8ff33460d7eb0 Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Tue, 25 Feb 2025 10:33:04 -0500 Subject: gh-129824: Temporarily skip InterpreterPoolMixin tests under TSAN (gh-129826) There are multiple data races reported when running the InterpreterPoolMixin tests, but it's still useful to run the other test_concurrent_futures tests under TSAN. Add test_concurrent_futures to the TSAN test suite. --- Lib/test/libregrtest/tsan.py | 1 + Lib/test/test_concurrent_futures/util.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Lib/test/libregrtest/tsan.py b/Lib/test/libregrtest/tsan.py index 2a65670..37d2983 100644 --- a/Lib/test/libregrtest/tsan.py +++ b/Lib/test/libregrtest/tsan.py @@ -6,6 +6,7 @@ TSAN_TESTS = [ 'test_capi.test_mem', 'test_capi.test_pyatomic', 'test_code', + 'test_concurrent_futures', 'test_enum', 'test_functools', 'test_httpservers', diff --git a/Lib/test/test_concurrent_futures/util.py b/Lib/test/test_concurrent_futures/util.py index 52baab5..4408621 100644 --- a/Lib/test/test_concurrent_futures/util.py +++ b/Lib/test/test_concurrent_futures/util.py @@ -74,6 +74,7 @@ class ThreadPoolMixin(ExecutorMixin): executor_type = futures.ThreadPoolExecutor +@support.skip_if_sanitizer("gh-129824: data races in InterpreterPool tests", thread=True) class InterpreterPoolMixin(ExecutorMixin): executor_type = futures.InterpreterPoolExecutor -- cgit v0.12