[Python-checkins] bpo-36888, test_multiprocessing: Increase test_parent_process timeout (GH-14286)

Miss Islington (bot) webhook-mailer at python.org
Tue Jun 25 17:12:51 EDT 2019


https://github.com/python/cpython/commit/4adc38e79495bd06878355fd5270c3f84b77f528
commit: 4adc38e79495bd06878355fd5270c3f84b77f528
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-06-25T14:12:47-07:00
summary:

bpo-36888, test_multiprocessing: Increase test_parent_process timeout (GH-14286)

(cherry picked from commit 594d9b9f58e1ef0a60b5ce9e590e0f45cd684f26)

Co-authored-by: Pierre Glaser <pierreglaser at msn.com>

files:
M Lib/test/_test_multiprocessing.py

diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index 071b54a713e2..07cf09aaa4ab 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -301,7 +301,7 @@ 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")
@@ -309,7 +309,7 @@ def test_parent_process(self):
         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")
@@ -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):



More information about the Python-checkins mailing list