Skip to content

Commit eae8fa1

Browse files
[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 0439743) Co-authored-by: Sam Gross <colesbury@gmail.com>
1 parent 2f15383 commit eae8fa1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Lib/test/test_concurrent_futures/test_init.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def _test(self, test_class):
139139
def test_spawn(self):
140140
self._test(ProcessPoolSpawnFailingInitializerTest)
141141

142+
@support.skip_if_sanitizer("TSAN doesn't support threads after fork", thread=True)
142143
def test_forkserver(self):
143144
self._test(ProcessPoolForkserverFailingInitializerTest)
144145

Lib/test/test_multiprocessing_fork/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@
1212
if sys.platform == 'darwin':
1313
raise unittest.SkipTest("test may crash on macOS (bpo-33725)")
1414

15+
if support.check_sanitizer(thread=True):
16+
raise unittest.SkipTest("TSAN doesn't support threads after fork")
17+
1518
def load_tests(*args):
1619
return support.load_package_tests(os.path.dirname(__file__), *args)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy