8000 [3.8] bpo-38546: multiprocessing tests stop the resource tracker (GH-17641) by vstinner · Pull Request #17647 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.8] bpo-38546: multiprocessing tests stop the resource tracker (GH-17641) #17647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2019
Merged

[3.8] bpo-38546: multiprocessing tests stop the resource tracker (GH-17641) #17647

merged 1 commit into from
Dec 18, 2019

Conversation

vstinner
Copy link
Member
@vstinner vstinner commented Dec 17, 2019

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 9707e8e)

https://bugs.python.org/issue38546

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 9707e8e)
@vstinner vstinner merged commit 35acb35 into python:3.8 Dec 18, 2019
@vstinner vstinner deleted the mp_stop_res_tracker38 branch December 18, 2019 09:11
vstinner added a commit that referenced this pull request Apr 23, 2020
…-19689)

* bpo-37421: multiprocessing tests call _run_finalizers() (GH-14527)

multiprocessing tests now call explicitly _run_finalizers() to remove
immediately temporary directories created by
multiprocessing.util.get_temp_dir().
(cherry picked from commit 039fb49)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
(cherry picked from commit 632cb36)

* bpo-37421: multiprocessing tests now stop ForkServer (GH-14601)

multiprocessing tests now stop the ForkServer instance if it's
running: close the "alive" file descriptor to ask the server to stop
and then remove its UNIX address.
(cherry picked from commit 8fbeb14)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
(cherry picked from commit 229f6e8)

* 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 9707e8e)
(cherry picked from commit 35acb35)

* Remove NEWS about resource tracker

Python 3.7 multiprocessing does not have resource tracker.

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0