mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix issue #12948: multiprocessing test failures can hang the buildbots
This commit is contained in:
commit
1e1c8f4913
1 changed files with 0 additions and 2 deletions
|
@ -2275,13 +2275,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()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue