From 5f95496050fc63c4e3d26d7514115c1be1bcfa7b Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 8 Dec 2021 02:10:34 +0000 Subject: Skip sched/priority tests These tests try to change the priority of the running process, but if e.g. PORTAGE_NICENESS=19, you can't spawn a process with lower (or higher!) niceness, as there's nowhere to go. Ditto priorities. Signed-off-by: Sam James --- Lib/test/test_posix.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 56b72f465c..612a80bc26 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -1764,6 +1764,7 @@ def test_setsigdef_wrong_type(self): os.environ, setsigdef=[signal.NSIG, signal.NSIG+1]) @requires_sched + @unittest.skip('Gentoo: fails when PORTAGE_NICENESS is set') @unittest.skipIf(sys.platform.startswith(('freebsd', 'netbsd')), "bpo-34685: test can fail on BSD") def test_setscheduler_only_param(self): @@ -1784,6 +1785,7 @@ def test_setscheduler_only_param(self): support.wait_process(pid, exitcode=0) @requires_sched + @unittest.skip('Gentoo: fails when PORTAGE_NICENESS is set') @unittest.skipIf(sys.platform.startswith(('freebsd', 'netbsd')), "bpo-34685: test can fail on BSD") def test_setscheduler_with_policy(self): -- cgit v1.2.3-65-gdbad