SIGN IN SIGN UP

[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)
B
Bénédikt Tran committed
0038b58ac912ba45cd96b3bd413dce4da15ceefe
Parent: 773cd81
Committed by GitHub <noreply@github.com> on 2/21/2026, 3:05:57 PM