aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-12-08 02:10:34 +0000
committerMichał Górny <mgorny@gentoo.org>2022-07-26 12:47:21 +0200
commitc31a0942d409326c986dd4f8e4468a2730847e6d (patch)
treebb1eddf869a69438987b373fb2f74508249cf68c
parentReplace hard-coded system libdir list (diff)
downloadcpython-gentoo-3.11.0b5.tar.gz
cpython-gentoo-3.11.0b5.tar.bz2
cpython-gentoo-3.11.0b5.zip
Skip sched/priority testsgentoo-3.11.0b5
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 <sam@gentoo.org>
-rw-r--r--Lib/test/test_posix.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index ae25ef55885..9047ce0b09d 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -1765,6 +1765,7 @@ class _PosixSpawnMixin:
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):
@@ -1785,6 +1786,7 @@ class _PosixSpawnMixin:
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):