Skip to content

Commit 1a8082a

Browse files
authored
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).
1 parent f151d27 commit 1a8082a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: Lib/test/libregrtest/tsan.py

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
'test_ssl',
2222
'test_syslog',
2323
'test_thread',
24+
'test_thread_local_bytecode',
2425
'test_threadedtempfile',
2526
'test_threading',
2627
'test_threading_local',

Diff for: 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)