]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Do not retain references to processes and managers in TestSyncManagerTypes (GH-11801)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 9 Feb 2019 17:26:16 +0000 (09:26 -0800)
committerGitHub <noreply@github.com>
Sat, 9 Feb 2019 17:26:16 +0000 (09:26 -0800)
Keeping references to processes and managers between tests makes them count as dangling processes.
(cherry picked from commit 613f729e5ddd201765a9a04efc1c76decb3a19c4)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Lib/test/_test_multiprocessing.py

index c35b920758db434620431c3b00fd25d2b5315ca5..487ad4b4ec0dda05b034e443724923dda6731900 100644 (file)
@@ -4610,6 +4610,8 @@ class TestSyncManagerTypes(unittest.TestCase):
             self.proc.terminate()
             self.proc.join()
         self.manager.shutdown()
+        self.manager = None
+        self.proc = None
 
     @classmethod
     def setUpClass(cls):