[3.6] Revert "bpo-34172: multiprocessing.Pool leaks resources after b… · python/cpython@eb38ee0 · GitHub
Skip to content

Commit eb38ee0

Browse files
authored
[3.6] Revert "bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450) (GH-9677)" (GH-10969)
This reverts commit 07b96a9.
1 parent f7fe18a commit eb38ee0

3 files changed

Lines changed: 27 additions & 57 deletions

File tree

Lib/multiprocessing/pool.py

Lines changed: 24 additions & 50 deletions

Lib/test/_test_multiprocessing.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2286,13 +2286,6 @@ def test_release_task_refs(self):
22862286
# they were released too.
22872287
self.assertEqual(CountedObject.n_instances, 0)
22882288

2289-
@support.reap_threads
2290-
def test_del_pool(self):
2291-
p = self.Pool(1)
2292-
wr = weakref.ref(p)
2293-
del p
2294-
gc.collect()
2295-
self.assertIsNone(wr())
22962289

22972290
def raising():
22982291
raise KeyError("key")
Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)