]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38546: multiprocessing tests stop the resource tracker (GH-17641) (GH-17647)
authorVictor Stinner <vstinner@python.org>
Wed, 18 Dec 2019 09:11:05 +0000 (10:11 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Dec 2019 09:11:05 +0000 (10:11 +0100)
commit35acb3597208e10a101140474adec86859d57f61
treeb497df57c7f26d3750ecc54192b1c335be9e01ec
parentb1f204471092678dd89117e608fa041a9589d14c
bpo-38546: multiprocessing tests stop the resource tracker (GH-17641) (GH-17647)

Multiprocessing and concurrent.futures tests now stop the resource
tracker process when tests complete.

Add ResourceTracker._stop() method to
multiprocessing.resource_tracker.

Add _cleanup_tests() helper function to multiprocessing.util: share
code between multiprocessing and concurrent.futures tests.

(cherry picked from commit 9707e8e22d80ca97bf7a9812816701cecde6d226)
Lib/multiprocessing/resource_tracker.py
Lib/multiprocessing/util.py
Lib/test/_test_multiprocessing.py
Lib/test/test_concurrent_futures.py
Misc/NEWS.d/next/Tests/2019-12-17-15-27-07.bpo-38546.82JwN2.rst [new file with mode: 0644]