Skip to content

Commit 1555c9a

Browse files
committed
pythongh-117657: Add test_thread_local_bytecode to TSAN tests
Skip `test_no_copies_if_tlbc_disabled` when run under TSAN for now due to a data race on the adaptive counter (see pythongh-129752).
1 parent 0d68b14 commit 1555c9a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/test/libregrtest/tsan.py

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
'test_ssl',
2121
'test_syslog',
2222
'test_thread',
23+
'test_thread_local_bytecode',
2324
'test_threadedtempfile',
2425
'test_threading',
2526
'test_threading_local',

Lib/test/test_thread_local_bytecode.py

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def f(a, b, q=None):
109109
""")
110110
assert_python_ok("-X", "tlbc=1", "-c", code)
111111

112+
@support.skip_if_sanitizer("gh-129752: data race on adaptive counter", thread=True)
112113
def test_no_copies_if_tlbc_disabled(self):
113114
code = textwrap.dedent("""
114115
import queue

0 commit comments

Comments
 (0)