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

Method get_context

Lib/test/test_concurrent_futures/util.py:99–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

97 ctx = "fork"
98
99 def get_context(self):
100 try:
101 _check_system_limits()
102 except NotImplementedError:
103 self.skipTest("ProcessPoolExecutor unavailable on this system")
104 if sys.platform == "win32":
105 self.skipTest("require unix system")
106 if support.check_sanitizer(thread=True):
107 self.skipTest("TSAN doesn't support threads after fork")
108 return super().get_context()
109
110 def create_event(self):
111 return self.manager.Event()

Callers

nothing calls this directly

Calls 4

_check_system_limitsFunction · 0.90
superClass · 0.85
skipTestMethod · 0.80
get_contextMethod · 0.45

Tested by

no test coverage detected