aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_thread_local_bytecode.py
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2025-02-11 16:54:32 -0500
committerGitHub <noreply@github.com>2025-02-11 16:54:32 -0500
commit1a8082a4bfc002fc05beb05637df4fc13597c49f (patch)
treebc572a47ae6d012fe8fdd1fc34eef4deb42991f3 /Lib/test/test_thread_local_bytecode.py
parentf151d271591ec525eaf01fa7b128e575374888b9 (diff)
downloadcpython-1a8082a4bfc002fc05beb05637df4fc13597c49f.tar.gz
cpython-1a8082a4bfc002fc05beb05637df4fc13597c49f.zip
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).
Diffstat (limited to 'Lib/test/test_thread_local_bytecode.py')
-rw-r--r--Lib/test/test_thread_local_bytecode.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_thread_local_bytecode.py b/Lib/test/test_thread_local_bytecode.py
index 7a8809c5ae7..ea52fb888ce 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