From: Sam Gross Date: Tue, 11 Feb 2025 21:54:32 +0000 (-0500) Subject: gh-117657: Add test_thread_local_bytecode to TSAN tests (gh-129753) X-Git-Tag: v3.14.0a6~461 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1a8082a4bfc002fc05beb05637df4fc13597c49f;p=thirdparty%2FPython%2Fcpython.git gh-117657: Add test_thread_local_bytecode to TSAN tests (gh-129753) Skip `test_no_copies_if_tlbc_disabled` when run under TSAN for now due to a data race on the adaptive counter (see gh-129752). --- diff --git a/Lib/test/libregrtest/tsan.py b/Lib/test/libregrtest/tsan.py index 51233724c813..2a656705d7b5 100644 --- a/Lib/test/libregrtest/tsan.py +++ b/Lib/test/libregrtest/tsan.py @@ -21,6 +21,7 @@ TSAN_TESTS = [ 'test_ssl', 'test_syslog', 'test_thread', + 'test_thread_local_bytecode', 'test_threadedtempfile', 'test_threading', 'test_threading_local', diff --git a/Lib/test/test_thread_local_bytecode.py b/Lib/test/test_thread_local_bytecode.py index 7a8809c5ae76..ea52fb888ce2 100644 --- a/Lib/test/test_thread_local_bytecode.py +++ b/Lib/test/test_thread_local_bytecode.py @@ -109,6 +109,7 @@ class TLBCTests(unittest.TestCase): """) assert_python_ok("-X", "tlbc=1", "-c", code) + @support.skip_if_sanitizer("gh-129752: data race on adaptive counter", thread=True) def test_no_copies_if_tlbc_disabled(self): code = textwrap.dedent(""" import queue