From aab035b673a8558ad4875381752b6d25c22edef8 Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Fri, 7 Feb 2025 19:00:38 +0000 Subject: [PATCH] gh-129824: Temporarily skip InterpreterPoolMixin tests under TSAN 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 90c9f0db0af2bf..09c038d2e05096 100644 --- a/Lib/test/libregrtest/tsan.py +++ b/Lib/test/libregrtest/tsan.py @@ -6,6 +6,7 @@ '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 52baab51340fc9..44086217f9dbcb 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