bpo-37123: multiprocessing test_mymanager() accepts SIGTERM (GH-16349) · python/cpython@b0e1ae5
@@ -2799,16 +2799,17 @@ def test_mymanager(self):
27992799self.common(manager)
28002800manager.shutdown()
280128012802-# If the manager process exited cleanly then the exitcode
2803-# will be zero. Otherwise (after a short timeout)
2804-# terminate() is used, resulting in an exitcode of -SIGTERM.
2805-self.assertEqual(manager._process.exitcode, 0)
2802+# bpo-30356: BaseManager._finalize_manager() sends SIGTERM
2803+# to the manager process if it takes longer than 1 second to stop,
2804+# which happens on slow buildbots.
2805+self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM))
2806280628072807def test_mymanager_context(self):
28082808with MyManager() as manager:
28092809self.common(manager)
28102810# bpo-30356: BaseManager._finalize_manager() sends SIGTERM
2811-# to the manager process if it takes longer than 1 second to stop.
2811+# to the manager process if it takes longer than 1 second to stop,
2812+# which happens on slow buildbots.
28122813self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM))
2813281428142815def test_mymanager_context_prestarted(self):