https://github.com/python/cpython/commit/1a8082a4bfc002fc05beb05637df4fc13597c49f
commit: 1a8082a4bfc002fc05beb05637df4fc13597c49f
branch: main
author: Sam Gross <[email protected]>
committer: colesbury <[email protected]>
date: 2025-02-11T16:54:32-05:00
summary:
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).
files:
M Lib/test/libregrtest/tsan.py
M Lib/test/test_thread_local_bytecode.py
diff --git a/Lib/test/libregrtest/tsan.py b/Lib/test/libregrtest/tsan.py
index 51233724c8136f..2a656705d7b508 100644
--- a/Lib/test/libregrtest/tsan.py
+++ b/Lib/test/libregrtest/tsan.py
@@ -21,6 +21,7 @@
'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 7a8809c5ae7697..ea52fb888ce25d 100644
--- a/Lib/test/test_thread_local_bytecode.py
+++ b/Lib/test/test_thread_local_bytecode.py
@@ -109,6 +109,7 @@ def f(a, b, q=None):
""")
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
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]