summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codecs.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-07-06 23:25:20 (GMT)
committerGitHub <noreply@github.com>2023-07-06 23:25:20 (GMT)
commit1931c2a438c50e6250725c84dff94fc760b9b951 (patch)
treed3e0ec40410f6959913f573c2cd0612a3d0e14d3 /Lib/test/test_codecs.py
parent80117dd45059a9dd8f2a2c9149df8f86608f0ca0 (diff)
downloadcpython-1931c2a438c50e6250725c84dff94fc760b9b951.zip
cpython-1931c2a438c50e6250725c84dff94fc760b9b951.tar.gz
cpython-1931c2a438c50e6250725c84dff94fc760b9b951.tar.bz2
[3.11] gh-90876: Restore the ability to import multiprocessing when `sys.executable` is `None` (GH-106464) (#106495)
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 'Lib/test/test_codecs.py')
0 files changed, 0 insertions, 0 deletions