diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-07-06 23:25:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-06 23:25:06 (GMT) |
commit | 4787eaed06cf83ed53270c61ac915dc0b15b20e8 (patch) | |
tree | 9e972864378bca78345f82b828baf15750a0f0f5 /install-sh | |
parent | e229225fbaa2de58b5143fea25b9d47480393f56 (diff) | |
download | cpython-4787eaed06cf83ed53270c61ac915dc0b15b20e8.zip cpython-4787eaed06cf83ed53270c61ac915dc0b15b20e8.tar.gz cpython-4787eaed06cf83ed53270c61ac915dc0b15b20e8.tar.bz2 |
[3.12] gh-90876: Restore the ability to import multiprocessing when `sys.executable` is `None` (GH-106464) (#106494)
gh-90876: Restore the ability to import multiprocessing when `sys.executable` is `None` (GH-106464)
Prevent `multiprocessing.spawn` from failing to *import* in environments
where `sys.executable` is `None`. This regressed in 3.11 with the addition
of support for path-like objects in multiprocessing.
Adds a test decorator to have tests only run when part of test_multiprocessing_spawn to `_test_multiprocessing.py` so we can start to avoid re-running the same not-global-state specific test in all 3 modes when there is no need.
(cherry picked from commit c60df361ce2d734148d503f4a711e67c110fe223)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'install-sh')
0 files changed, 0 insertions, 0 deletions