mirror of
https://github.com/python/cpython.git
synced 2025-09-29 03:35:31 +00:00
Fix a warning about dangling processes in test_rapid_restart() of
_test_multiprocessing: join the process.
(cherry picked from commit 17657bb945
)
This commit is contained in:
parent
98e26979aa
commit
78c66a641a
1 changed files with 2 additions and 1 deletions
|
@ -2425,12 +2425,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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue