MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_mymanager

Method test_mymanager

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

Source from the content-addressed store, hash-verified

3173 ALLOWED_TYPES = ('manager',)
3174
3175 def test_mymanager(self):
3176 manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
3177 manager.start()
3178 self.common(manager)
3179 manager.shutdown()
3180
3181 # bpo-30356: BaseManager._finalize_manager() sends SIGTERM
3182 # to the manager process if it takes longer than 1 second to stop,
3183 # which happens on slow buildbots.
3184 self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM))
3185
3186 def test_mymanager_context(self):
3187 manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected