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

Method test_mymanager

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

Source from the content-addressed store, hash-verified

3446 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
3447 @support.skip_if_sanitizer('TSan: leaks threads', thread=True)
3448 def test_mymanager(self):
3449 manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
3450 manager.start()
3451 self.common(manager)
3452 manager.shutdown()
3453
3454 # bpo-30356: BaseManager._finalize_manager() sends SIGTERM
3455 # to the manager process if it takes longer than 1 second to stop,
3456 # which happens on slow buildbots.
3457 self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM))
3458
3459 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
3460 @support.skip_if_sanitizer('TSan: leaks threads', thread=True)

Callers

nothing calls this directly

Calls 5

commonMethod · 0.95
assertInMethod · 0.80
MyManagerClass · 0.70
startMethod · 0.45
shutdownMethod · 0.45

Tested by

no test coverage detected