MCPcopy Index your code
hub / github.com/python/cpython / forkserver_check_wrapper

Function forkserver_check_wrapper

Lib/test/_test_multiprocessing.py:225–231  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

223
224 @functools.wraps(test_item)
225 def forkserver_check_wrapper(*args, **kwargs):
226 if not support.has_fork_support:
227 raise unittest.SkipTest("requires working os.fork()")
228 if (start_method := multiprocessing.get_start_method()) != "forkserver":
229 raise unittest.SkipTest(
230 f"{start_method=}, not 'forkserver'; {reason}")
231 return test_item(*args, **kwargs)
232
233 return forkserver_check_wrapper
234

Callers

nothing calls this directly

Calls 1

get_start_methodMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…