8000 gh-117657: Skip test when running under TSan (GH-121549) · python/cpython@0439743 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0439743

Browse files
authored
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
1 parent 9c08f40 commit 0439743

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)
0