Content-Length: 294447 | pFad | https://github.com/python/cpython/pull/106494

3B [3.12] gh-90876: Restore the ability to import multiprocessing when `sys.executable` is `None` (GH-106464) by miss-islington · Pull Request #106494 · python/cpython · GitHub
Skip to content

[3.12] gh-90876: Restore the ability to import multiprocessing when sys.executable is None (GH-106464)#106494

Merged
gpshead merged 1 commit into
python:3.12from
miss-islington:backport-c60df36-3.12
Jul 6, 2023
Merged

[3.12] gh-90876: Restore the ability to import multiprocessing when sys.executable is None (GH-106464)#106494
gpshead merged 1 commit into
python:3.12from
miss-islington:backport-c60df36-3.12

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 6, 2023

Copy link
Copy Markdown
Contributor

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 c60df36)

Co-authored-by: Gregory P. Smith greg@krypto.org

…ys.executable` is `None` (pythonGH-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 c60df36)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/106494

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy