summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_multiprocessing_fork
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-07-09 21:37:30 (GMT)
committerGitHub <noreply@github.com>2024-07-09 21:37:30 (GMT)
commiteae8fa1178b0c1e7d5718c416577ceeb4b05be76 (patch)
tree140309c0e370f9b42bbc7b784538d35fe2e435d0 /Lib/test/test_multiprocessing_fork
parent2f1538316138425b453d698adac031d4093fa885 (diff)
downloadcpython-eae8fa1178b0c1e7d5718c416577ceeb4b05be76.zip
cpython-eae8fa1178b0c1e7d5718c416577ceeb4b05be76.tar.gz
cpython-eae8fa1178b0c1e7d5718c416577ceeb4b05be76.tar.bz2
[3.13] gh-117657: Skip test when running under TSan (GH-121549) (GH-121553)
gh-117657: Skip test when running under TSan (GH-121549) 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 (cherry picked from commit 04397434aad9b31328785e17ac7b3a2d5097269b) Co-authored-by: Sam Gross <colesbury@gmail.com>
Diffstat (limited to 'Lib/test/test_multiprocessing_fork')
-rw-r--r--Lib/test/test_multiprocessing_fork/__init__.py3
1 files changed, 3 insertions, 0 deletions
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)