]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104090: Add exit code to multiprocessing ResourceTracker (GH-115410)
authorPetr Viktorin <encukou@gmail.com>
Wed, 21 Feb 2024 12:54:57 +0000 (13:54 +0100)
committerGitHub <noreply@github.com>
Wed, 21 Feb 2024 12:54:57 +0000 (13:54 +0100)
commit4a9e6497c2cae40647589497e033b0b590a180ba
treeff535e2eee24ed9b466ca4cbf5f9e54888296fad
parentb052fa381fa2ce6820332d56fb22cd7156529d24
gh-104090: Add exit code to multiprocessing ResourceTracker (GH-115410)

This builds on https://github.com/python/cpython/pull/106807, which adds
a return code to ResourceTracker, to make future debugging easier.
Testing this “in situ” proved difficult, since the global ResourceTracker is
involved in test infrastructure. So, the tests here create a new instance and
feed it fake data.

---------

Co-authored-by: Yonatan Bitton <yonatan.bitton@perception-point.io>
Co-authored-by: Yonatan Bitton <bityob@gmail.com>
Co-authored-by: Antoine Pitrou <antoine@python.org>
Lib/multiprocessing/resource_tracker.py
Lib/test/_test_multiprocessing.py
Lib/test/test_concurrent_futures/test_init.py
Misc/NEWS.d/next/Core and Builtins/2023-07-16-15-02-47.gh-issue-104090.oMjNa9.rst [new file with mode: 0644]