From: Pablo Galindo Date: Sat, 9 Feb 2019 17:08:49 +0000 (+0000) Subject: Do not retain references to processes and managers in TestSyncManagerTypes (GH-11801) X-Git-Tag: v3.8.0a2~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=613f729e5ddd201765a9a04efc1c76decb3a19c4;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. --- 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 @@ class TestSyncManagerTypes(unittest.TestCase): self.proc.terminate() self.proc.join() self.manager.shutdown() + self.manager = None + self.proc = None @classmethod def setUpClass(cls):