From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 9 Feb 2019 17:26:16 +0000 (-0800) Subject: Do not retain references to processes and managers in TestSyncManagerTypes (GH-11801) X-Git-Tag: v3.7.3rc1~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36ed5b3c4e565c1fdfe22e61b33613d98a61df7c;p=thirdparty%2FPython%2Fcpython.git 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. (cherry picked from commit 613f729e5ddd201765a9a04efc1c76decb3a19c4) Co-authored-by: Pablo Galindo --- diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index c35b920758db..487ad4b4ec0d 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -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):