From: Sam Gross Date: Tue, 25 Feb 2025 15:33:04 +0000 (-0500) Subject: gh-129824: Temporarily skip InterpreterPoolMixin tests under TSAN (gh-129826) X-Git-Tag: v3.14.0a6~267 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3774d9f7b56871372ac278e2c2d8ff33460d7eb0;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/libregrtest/tsan.py b/Lib/test/libregrtest/tsan.py index 2a656705d7b5..37d2983837fb 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 52baab51340f..44086217f9db 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