summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-02-09 17:08:49 (GMT)
committerGitHub <noreply@github.com>2019-02-09 17:08:49 (GMT)
commit613f729e5ddd201765a9a04efc1c76decb3a19c4 (patch)
tree37f69c4b9c777ad896263d53322afbe525eca256 /Lib/test
parent8a03ff2ff4db973c9fe152561f1796e72cb71132 (diff)
downloadcpython-613f729e5ddd201765a9a04efc1c76decb3a19c4.zip
cpython-613f729e5ddd201765a9a04efc1c76decb3a19c4.tar.gz
cpython-613f729e5ddd201765a9a04efc1c76decb3a19c4.tar.bz2
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.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/_test_multiprocessing.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index 2f839b9..d3cb195 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):