]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] Fix ProgramPriorityTests on FreeBSD with high nice value (GH-100145) (GH-115615)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 17 Feb 2024 15:38:38 +0000 (16:38 +0100)
committerGitHub <noreply@github.com>
Sat, 17 Feb 2024 15:38:38 +0000 (15:38 +0000)
commita23aecc73777e6370792728c4dcd3af8999ba791
tree6e64874bf9791238f3a9bed1402dc9d8f2a828fb
parent6fbc61070fda2ffb8889e77e3b24bca4249ab4d1
[3.11] Fix ProgramPriorityTests on FreeBSD with high nice value (GH-100145) (GH-115615)

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