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

Fix a warning about dangling processes in test_rapid_restart() of
_test_multiprocessing: join the process.
This commit is contained in:
Victor Stinner 2017-08-16 12:46:04 +02:00 committed by GitHub
parent 7cc33998b8
commit 17657bb945

View file

@ -2596,12 +2596,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)
try: