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

Method test_mymanager_context

Lib/test/_test_multiprocessing.py:3461–3468  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3459 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
3460 @support.skip_if_sanitizer('TSan: leaks threads', thread=True)
3461 def test_mymanager_context(self):
3462 manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
3463 with manager:
3464 self.common(manager)
3465 # bpo-30356: BaseManager._finalize_manager() sends SIGTERM
3466 # to the manager process if it takes longer than 1 second to stop,
3467 # which happens on slow buildbots.
3468 self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM))
3469
3470 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
3471 @support.skip_if_sanitizer('TSan: leaks threads', thread=True)

Callers

nothing calls this directly

Calls 3

commonMethod · 0.95
assertInMethod · 0.80
MyManagerClass · 0.70

Tested by

no test coverage detected