summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-08-16 10:46:04 (GMT)
committerGitHub <noreply@github.com>2017-08-16 10:46:04 (GMT)
commit17657bb9458ff8f8804b7637d61686a68f4b9471 (patch)
tree7e99f8bd7e6f787df718759aa99a54cfc10519e3
parent7cc33998b83df6ab8cf2c1afe16a61ee232e39ec (diff)
downloadcpython-17657bb9458ff8f8804b7637d61686a68f4b9471.zip
cpython-17657bb9458ff8f8804b7637d61686a68f4b9471.tar.gz
cpython-17657bb9458ff8f8804b7637d61686a68f4b9471.tar.bz2
bpo-31069, test_multiprocessing: Fix dangling process (#3103)
Fix a warning about dangling processes in test_rapid_restart() of _test_multiprocessing: join the process.
-rw-r--r--Lib/test/_test_multiprocessing.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index cce3c02..dce62df 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -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: