Skip to content

Commit 8516343

Browse files
gh-127945: add test_ctypes to free-threading TSAN CI (#132727)
1 parent 4f7f72c commit 8516343

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/test/libregrtest/tsan.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
'test_capi.test_mem',
88
'test_capi.test_pyatomic',
99
'test_code',
10+
'test_ctypes',
1011
# 'test_concurrent_futures', # gh-130605: too many data races
1112
'test_enum',
1213
'test_functools',

Lib/test/test_ctypes/test_as_parameter.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
c_short, c_int, c_long, c_longlong,
66
c_byte, c_wchar, c_float, c_double,
77
ArgumentError)
8-
from test.support import import_helper
8+
from test.support import import_helper, skip_if_sanitizer
99
_ctypes_test = import_helper.import_module("_ctypes_test")
1010

1111

@@ -192,6 +192,7 @@ class S8I(Structure):
192192
self.assertEqual((s8i.a, s8i.b, s8i.c, s8i.d, s8i.e, s8i.f, s8i.g, s8i.h),
193193
(9*2, 8*3, 7*4, 6*5, 5*6, 4*7, 3*8, 2*9))
194194

195+
@skip_if_sanitizer('requires deep stack', thread=True)
195196
def test_recursive_as_param(self):
196197
class A:
197198
pass

0 commit comments

Comments
 (0)