summaryrefslogtreecommitdiffstats
path: root/Lib/test/_test_multiprocessing.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-12-06 07:51:47 (GMT)
committerGitHub <noreply@github.com>2018-12-06 07:51:47 (GMT)
commit9dfc754d61c55a526304e10a328bad448efa9ee9 (patch)
tree80032138ec6b98c82cd1c48e9e78f11cbf4fd336 /Lib/test/_test_multiprocessing.py
parent8752dfbd1f0c96ca09cdacabaf0d0f8c3895b6ce (diff)
downloadcpython-9dfc754d61c55a526304e10a328bad448efa9ee9.zip
cpython-9dfc754d61c55a526304e10a328bad448efa9ee9.tar.gz
cpython-9dfc754d61c55a526304e10a328bad448efa9ee9.tar.bz2
Revert "bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450)" (GH-10971)
This reverts commit 97bfe8d3ebb0a54c8798f57555cb4152f9b2e1d0.
Diffstat (limited to 'Lib/test/_test_multiprocessing.py')
-rw-r--r--Lib/test/_test_multiprocessing.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index b62c119..163419c 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -2558,13 +2558,6 @@ class _TestPool(BaseTestCase):
# they were released too.
self.assertEqual(CountedObject.n_instances, 0)
- @support.reap_threads
- def test_del_pool(self):
- p = self.Pool(1)
- wr = weakref.ref(p)
- del p
- gc.collect()
- self.assertIsNone(wr())
def raising():
raise KeyError("key")