[3.8] bpo-36888, test_multiprocessing: Increase test_parent_process timeout (GH-14286) by miss-islington · Pull Request #14382 · python/cpython
Expand Up
@@ -301,15 +301,15 @@ def test_parent_process(self):
target=self._test_create_grandchild_process, args=(wconn, ))
p.start()
if not rconn.poll(timeout=5): if not rconn.poll(timeout=60): raise AssertionError("Could not communicate with child process") parent_process_status = rconn.recv() self.assertEqual(parent_process_status, "alive")
p.terminate() p.join()
if not rconn.poll(timeout=5): if not rconn.poll(timeout=60): raise AssertionError("Could not communicate with child process") parent_process_status = rconn.recv() self.assertEqual(parent_process_status, "not alive") Expand All @@ -318,7 +318,7 @@ def test_parent_process(self): def _test_create_grandchild_process(cls, wconn): p = cls.Process(target=cls._test_report_parent_status, args=(wconn, )) p.start() time.sleep(100) time.sleep(300)
@classmethod def _test_report_parent_status(cls, wconn): Expand Down
if not rconn.poll(timeout=5): if not rconn.poll(timeout=60): raise AssertionError("Could not communicate with child process") parent_process_status = rconn.recv() self.assertEqual(parent_process_status, "alive")
p.terminate() p.join()
if not rconn.poll(timeout=5): if not rconn.poll(timeout=60): raise AssertionError("Could not communicate with child process") parent_process_status = rconn.recv() self.assertEqual(parent_process_status, "not alive") Expand All @@ -318,7 +318,7 @@ def test_parent_process(self): def _test_create_grandchild_process(cls, wconn): p = cls.Process(target=cls._test_report_parent_status, args=(wconn, )) p.start() time.sleep(100) time.sleep(300)
@classmethod def _test_report_parent_status(cls, wconn): Expand Down