[Python-checkins] Do not retain references to processes and managers in TestSyncManagerTypes (GH-11801)

Pablo Galindo webhook-mailer at python.org
Sat Feb 9 12:08:53 EST 2019


https://github.com/python/cpython/commit/613f729e5ddd201765a9a04efc1c76decb3a19c4
commit: 613f729e5ddd201765a9a04efc1c76decb3a19c4
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: GitHub <noreply at github.com>
date: 2019-02-09T17:08:49Z
summary:

Do not retain references to processes and managers in TestSyncManagerTypes (GH-11801)

Keeping references to processes and managers between tests makes them count as dangling processes.

files:
M Lib/test/_test_multiprocessing.py

diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index 2f839b952126..d3cb195077ae 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -4740,6 +4740,8 @@ def tearDown(self):
             self.proc.terminate()
             self.proc.join()
         self.manager.shutdown()
+        self.manager = None
+        self.proc = None
 
     @classmethod
     def setUpClass(cls):



More information about the Python-checkins mailing list