[3.7] bpo-30356: Fix test_mymanager_context() of multiprocessing (GH-7968) by miss-islington · Pull Request #7969 · python/cpython

Expand Up @@ -2666,7 +2666,9 @@ def test_mymanager(self): def test_mymanager_context(self): with MyManager() as manager: self.common(manager) self.assertEqual(manager._process.exitcode, 0) # bpo-30356: BaseManager._finalize_manager() sends SIGTERM # to the manager process if it takes longer than 1 second to stop. self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM))
def test_mymanager_context_prestarted(self): manager = MyManager() Expand Down