Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Lib/test/test_concurrent_futures/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ def get_context(self):
self.skipTest("require unix system")
if support.check_sanitizer(thread=True):
self.skipTest("TSAN doesn't support threads after fork")
if "forkserver" not in multiprocessing.get_all_start_methods():
self.skipTest("forkserver start method is not available")
return super().get_context()

def create_event(self):
Expand Down
6 changes: 6 additions & 0 deletions Lib/test/test_multiprocessing_forkserver/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import multiprocessing
import os.path
import sys
import unittest
Expand All @@ -12,5 +13,10 @@
if not support.has_fork_support:
raise unittest.SkipTest("requires working os.fork()")

# The forkserver start method requires passing file descriptors over a Unix
# socket, which is not available on every platform (e.g. Solaris/illumos).
if "forkserver" not in multiprocessing.get_all_start_methods():
raise unittest.SkipTest("forkserver start method is not available")

def load_tests(*args):
return support.load_package_tests(os.path.dirname(__file__), *args)
Loading