The ProcessPoolForkserver combined with resource_tracker starts a thread
after forking, which is not supported by TSan.
Also skip test_multiprocessing_fork for the same reason
def test_spawn(self):
self._test(ProcessPoolSpawnFailingInitializerTest)
+ @support.skip_if_sanitizer("TSAN doesn't support threads after fork", thread=True)
def test_forkserver(self):
self._test(ProcessPoolForkserverFailingInitializerTest)
if sys.platform == 'darwin':
raise unittest.SkipTest("test may crash on macOS (bpo-33725)")
+if support.check_sanitizer(thread=True):
+ raise unittest.SkipTest("TSAN doesn't support threads after fork")
+
def load_tests(*args):
return support.load_package_tests(os.path.dirname(__file__), *args)