]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38546: multiprocessing tests stop the resource tracker (GH-17641)
authorVictor Stinner <vstinner@python.org>
Tue, 17 Dec 2019 17:37:26 +0000 (18:37 +0100)
committerGitHub <noreply@github.com>
Tue, 17 Dec 2019 17:37:26 +0000 (18:37 +0100)
commit9707e8e22d80ca97bf7a9812816701cecde6d226
tree088de81a48039faca3709360325055105b9d9c56
parent630c8df5cf126594f8c1c4579c1888ca80a29d59
bpo-38546: multiprocessing tests stop the resource tracker (GH-17641)

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.
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]