Skip to content

Commit 594d9b9

Browse files
pierreglaservstinner
authored andcommitted
bpo-36888, test_multiprocessing: Increase test_parent_process timeout (GH-14286)
1 parent 0225701 commit 594d9b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/_test_multiprocessing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,15 +301,15 @@ def test_parent_process(self):
301301
target=self._test_create_grandchild_process, args=(wconn, ))
302302
p.start()
303303

304-
if not rconn.poll(timeout=5):
304+
if not rconn.poll(timeout=60):
305305
raise AssertionError("Could not communicate with child process")
306306
parent_process_status = rconn.recv()
307307
self.assertEqual(parent_process_status, "alive")
308308

309309
p.terminate()
310310
p.join()
311311

312-
if not rconn.poll(timeout=5):
312+
if not rconn.poll(timeout=60):
313313
raise AssertionError("Could not communicate with child process")
314314
parent_process_status = rconn.recv()
315315
self.assertEqual(parent_process_status, "not alive")
@@ -318,7 +318,7 @@ def test_parent_process(self):
318318
def _test_create_grandchild_process(cls, wconn):
319319
p = cls.Process(target=cls._test_report_parent_status, args=(wconn, ))
320320
p.start()
321-
time.sleep(100)
321+
time.sleep(300)
322322

323323
@classmethod
324324
def _test_report_parent_status(cls, wconn):

0 commit comments

Comments
 (0)