1# Set of tests run by default if --tsan is specified. The tests below were 2# chosen because they use threads and run in a reasonable amount of time. 3 4TSAN_TESTS = [ 5 # TODO: enable more of test_capi once bugs are fixed (GH-116908, GH-116909). 6 'test_capi.test_mem', 7 'test_capi.test_pyatomic', 8 'test_code', 9 'test_enum', 10 'test_functools', 11 'test_httpservers', 12 'test_imaplib', 13 'test_importlib', 14 'test_io', 15 'test_logging', 16 'test_queue', 17 'test_signal', 18 'test_socket', 19 'test_sqlite3', 20 'test_ssl', 21 'test_syslog', 22 'test_thread', 23 'test_threadedtempfile', 24 'test_threading', 25 'test_threading_local', 26 'test_threadsignals', 27 'test_weakref', 28] 29 30 31def setup_tsan_tests(cmdline_args): 32 if not cmdline_args: 33 cmdline_args[:] = TSAN_TESTS[:] 34