From 1a8082a4bfc002fc05beb05637df4fc13597c49f Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Tue, 11 Feb 2025 16:54:32 -0500 Subject: 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). --- Lib/test/libregrtest/tsan.py | 1 + Lib/test/test_thread_local_bytecode.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Lib/test/libregrtest/tsan.py b/Lib/test/libregrtest/tsan.py index 5123372..2a65670 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 7a8809c..ea52fb8 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 -- cgit v0.12