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-11-11 13:56:53 +0100
commit4936396be260abc633ca04a31875c817ab086803 (patch)
tree9ff44e5fed453ef4852bc8ef96e0de93746df325
parentSkip tests which interact with invalid UTF-8 files (diff)
downloadcpython-gentoo-3.9.15_p3-r1.tar.gz
cpython-gentoo-3.9.15_p3-r1.tar.bz2
cpython-gentoo-3.9.15_p3-r1.zip
Skip sched/priority testsgentoo-3.9.15_p3-r1
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 3c0ddeb0037..6e0f7d07919 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -1715,6 +1715,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):
@@ -1735,6 +1736,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):