mirror of
https://github.com/python/cpython.git
synced 2025-10-08 16:11:51 +00:00
Revert "bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450)" (GH-10971)
This reverts commit 97bfe8d3eb
.
This commit is contained in:
parent
8752dfbd1f
commit
9dfc754d61
3 changed files with 24 additions and 58 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue