Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
skip test_pointers
  • Loading branch information
kumaraditya303 committed Apr 21, 2025
commit bf8a6cb65025e8300bcd4dcbb548d0dfacb3045e
56 changes: 28 additions & 28 deletions Lib/test/libregrtest/tsan.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,35 @@
# chosen because they use threads and run in a reasonable amount of time.

TSAN_TESTS = [
'test_asyncio',
# TODO: enable more of test_capi once bugs are fixed (GH-116908, GH-116909).
'test_capi.test_mem',
'test_capi.test_pyatomic',
'test_code',
# 'test_asyncio',
# # TODO: enable more of test_capi once bugs are fixed (GH-116908, GH-116909).
# 'test_capi.test_mem',
# 'test_capi.test_pyatomic',
# 'test_code',
'test_ctypes',
# 'test_concurrent_futures', # gh-130605: too many data races
'test_enum',
'test_functools',
'test_httpservers',
'test_imaplib',
'test_importlib',
'test_io',
'test_logging',
'test_opcache',
'test_queue',
'test_signal',
'test_socket',
'test_sqlite3',
'test_ssl',
'test_syslog',
'test_thread',
'test_thread_local_bytecode',
'test_threadedtempfile',
'test_threading',
'test_threading_local',
'test_threadsignals',
'test_weakref',
'test_free_threading',
# # 'test_concurrent_futures', # gh-130605: too many data races
# 'test_enum',
# 'test_functools',
# 'test_httpservers',
# 'test_imaplib',
# 'test_importlib',
# 'test_io',
# 'test_logging',
# 'test_opcache',
# 'test_queue',
# 'test_signal',
# 'test_socket',
# 'test_sqlite3',
# 'test_ssl',
# 'test_syslog',
# 'test_thread',
# 'test_thread_local_bytecode',
# 'test_threadedtempfile',
# 'test_threading',
# 'test_threading_local',
# 'test_threadsignals',
# 'test_weakref',
# 'test_free_threading',
]

# Tests that should be run with `--parallel-threads=N` under TSAN. These tests
Expand Down
3 changes: 2 additions & 1 deletion Lib/test/test_ctypes/test_as_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
c_short, c_int, c_long, c_longlong,
c_byte, c_wchar, c_float, c_double,
ArgumentError)
from test.support import import_helper
from test.support import import_helper, skip_if_sanitizer
_ctypes_test = import_helper.import_module("_ctypes_test")


Expand Down Expand Up @@ -33,6 +33,7 @@ def test_wchar_parm(self):
self.assertEqual(result, 139)
self.assertIs(type(result), int)

@skip_if_sanitizer('thread', thread=True)
def test_pointers(self):
f = dll._testfunc_p_p
f.restype = POINTER(c_int)
Expand Down