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

Function spawn_check_wrapper

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

Source from the content-addressed store, hash-verified

198
199 @functools.wraps(test_item)
200 def spawn_check_wrapper(*args, **kwargs):
201 if (start_method := multiprocessing.get_start_method()) != "spawn":
202 raise unittest.SkipTest(f"{start_method=}, not 'spawn'; {reason}")
203 return test_item(*args, **kwargs)
204
205 return spawn_check_wrapper
206

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…