]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:05:57 +0000 (16:05 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Feb 2026 15:05:57 +0000 (16:05 +0100)
commit0038b58ac912ba45cd96b3bd413dce4da15ceefe
treedf4a5cd9a023c888818d22807161e7998c1d1bf9
parent773cd81028473aa75f722aeff3b2477a6d310798
[3.13] gh-143698: correctly check `scheduler` and `setpgroup` values for `os.posix_spawn[p]` (GH-143699) (#145074)

* [3.13] gh-143698: correctly check `scheduler` and `setpgroup` values for `os.posix_spawn[p]` (GH-143699)

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