Commit 883520a8 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

bpo-31069, test_multiprocessing: Fix dangling process (#3103) (#3105)

Fix a warning about dangling processes in test_rapid_restart() of
_test_multiprocessing: join the process.
(cherry picked from commit 17657bb9)
parent 05b7d9c6
......@@ -1583,12 +1583,13 @@ class _TestManagerRestart(BaseTestCase):
manager.start()
p = self.Process(target=self._putter, args=(manager.address, authkey))
p.daemon = True
p.start()
p.join()
queue = manager.get_queue()
self.assertEqual(queue.get(), 'hello world')
del queue
manager.shutdown()
manager = QueueManager(
address=addr, authkey=authkey, serializer=SERIALIZER)
manager.start()
......
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