summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_concurrent_futures/test_init.py1
-rw-r--r--Lib/test/test_multiprocessing_fork/__init__.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_concurrent_futures/test_init.py b/Lib/test/test_concurrent_futures/test_init.py
index a36f592..df64092 100644
--- a/Lib/test/test_concurrent_futures/test_init.py
+++ b/Lib/test/test_concurrent_futures/test_init.py
@@ -139,6 +139,7 @@ class FailingInitializerResourcesTest(unittest.TestCase):
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)
diff --git a/Lib/test/test_multiprocessing_fork/__init__.py b/Lib/test/test_multiprocessing_fork/__init__.py
index aa1fff5..b35e828 100644
--- a/Lib/test/test_multiprocessing_fork/__init__.py
+++ b/Lib/test/test_multiprocessing_fork/__init__.py
@@ -12,5 +12,8 @@ if sys.platform == "win32":
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)