]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-143698: correctly check `scheduler` and `setpgroup` values for `os.posix_spawn...
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sat, 21 Feb 2026 11:20:42 +0000 (12:20 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Feb 2026 11:20:42 +0000 (11:20 +0000)
commit347fc438cf903c1d7fa5063464ae2e93c11b2232
treee141e242b99a40264e8ef547677d9573989f6309
parent20b1535ca40a5b93088cdbc669e86215f1630599
gh-143698: correctly check `scheduler` and `setpgroup` values for `os.posix_spawn[p]` (#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.
Lib/test/test_inspect/test_inspect.py
Lib/test/test_os/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