summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2023-07-06 22:46:50 (GMT)
committerGitHub <noreply@github.com>2023-07-06 22:46:50 (GMT)
commitc60df361ce2d734148d503f4a711e67c110fe223 (patch)
tree19092e94465dcef4b6ee032c8bc939eaaf20f727 /Misc
parent76fac7bce55302a8e9a524d72f5384fd89e6dfde (diff)
downloadcpython-c60df361ce2d734148d503f4a711e67c110fe223.zip
cpython-c60df361ce2d734148d503f4a711e67c110fe223.tar.gz
cpython-c60df361ce2d734148d503f4a711e67c110fe223.tar.bz2
gh-90876: Restore the ability to import multiprocessing when `sys.executable` is `None` (#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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-07-05-13-08-23.gh-issue-90876.Qvlkfl.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-07-05-13-08-23.gh-issue-90876.Qvlkfl.rst b/Misc/NEWS.d/next/Library/2023-07-05-13-08-23.gh-issue-90876.Qvlkfl.rst
new file mode 100644
index 0000000..3e062b5
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-07-05-13-08-23.gh-issue-90876.Qvlkfl.rst
@@ -0,0 +1,3 @@
+Prevent :mod:`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.