]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] Fix ProgramPriorityTests on FreeBSD with high nice value (GH-100145) (GH-115614)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 17 Feb 2024 15:35:34 +0000 (16:35 +0100)
committerGitHub <noreply@github.com>
Sat, 17 Feb 2024 15:35:34 +0000 (15:35 +0000)
commit9563e46a783565ec72e551ff85819458a15773a3
treecef4fd88b126373dce41c87f312990a12b64b6d0
parente32cde54f5b086bf994cb183f67d0b1a3a378c3e
[3.12] Fix ProgramPriorityTests on FreeBSD with high nice value (GH-100145) (GH-115614)

It expects priority to be capped with 19, which is the cap for Linux,
but for FreeBSD the cap is 20 and the test fails under the similar
conditions. Tweak the condition to cover FreeBSD as well.
(cherry picked from commit 437924465de5cb81988d1e580797b07090c26a28)

Co-authored-by: Dmitry Marakasov <amdmi3@amdmi3.ru>
Lib/test/test_os.py