]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-143698: correctly check `scheduler` and `setpgroup` values for `os.posix_sp...
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sat, 21 Feb 2026 15:04:31 +0000 (16:04 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Feb 2026 15:04:31 +0000 (16:04 +0100)
commitdcf96d0ed6641e6fa6cd7df23d4ebf2bc3280c1b
tree56fef0a99fa3859e1d9c3f46eb8fc97334881335
parent8e482eb1ec570d0e16bca8ddd1320863bd6e1f91
[3.14] gh-143698: correctly check `scheduler` and `setpgroup` values for `os.posix_spawn[p]` (GH-143699) (#145073)

Fix an issue where passing invalid arguments to `os.posix_spawn[p]` functions
raised a SystemError instead of a TypeError, and allow to explicitly use `None`
for `scheduler` and `setpgroup` as specified in the docs.

(cherry picked from commit 347fc438cf903c1d7fa5063464ae2e93c11b2232)
Lib/test/test_inspect/test_inspect.py
Lib/test/test_posix.py
Misc/NEWS.d/next/Library/2026-01-11-16-59-22.gh-issue-143698.b-Cpeb.rst [new file with mode: 0644]
Misc/NEWS.d/next/Library/2026-01-11-18-35-52.gh-issue-143698.gXDzsJ.rst [new file with mode: 0644]
Modules/clinic/posixmodule.c.h
Modules/posixmodule.c