Skip to content

Commit 883520a

Browse files
authored
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 17657bb)
1 parent 05b7d9c commit 883520a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_multiprocessing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1583,12 +1583,13 @@ def test_rapid_restart(self):
15831583
manager.start()
15841584

15851585
p = self.Process(target=self._putter, args=(manager.address, authkey))
1586-
p.daemon = True
15871586
p.start()
1587+
p.join()
15881588
queue = manager.get_queue()
15891589
self.assertEqual(queue.get(), 'hello world')
15901590
del queue
15911591
manager.shutdown()
1592+
15921593
manager = QueueManager(
15931594
address=addr, authkey=authkey, serializer=SERIALIZER)
15941595
manager.start()

0 commit comments

Comments
 (0)