Commit da752d80 authored by Jesus Cea's avatar Jesus Cea

Fix issue #12948: multiprocessing test failures can hang the buildbots

parent 94f964f8
...@@ -2220,13 +2220,11 @@ class TestStdinBadfiledescriptor(unittest.TestCase): ...@@ -2220,13 +2220,11 @@ class TestStdinBadfiledescriptor(unittest.TestCase):
def test_queue_in_process(self): def test_queue_in_process(self):
queue = multiprocessing.Queue() queue = multiprocessing.Queue()
proc = multiprocessing.Process(target=_TestProcess, args=(queue,)) proc = multiprocessing.Process(target=_TestProcess, args=(queue,))
proc.daemon = True
proc.start() proc.start()
proc.join() proc.join()
def test_pool_in_process(self): def test_pool_in_process(self):
p = multiprocessing.Process(target=pool_in_process) p = multiprocessing.Process(target=pool_in_process)
p.daemon = True
p.start() p.start()
p.join() p.join()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment