From 3abc4eb93e09c2e09a908da2af58a53c52ab2439 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Sat, 9 Feb 2019 17:08:49 +0000 Subject: [PATCH] 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 --- Lib/test/_test_multiprocessing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index c35b920758db43..487ad4b4ec0dda 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -4610,6 +4610,8 @@ def tearDown(self): self.proc.terminate() self.proc.join() self.manager.shutdown() + self.manager = None + self.proc = None @classmethod def setUpClass(cls):