aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-12-08 02:10:34 +0000
committerMichał Górny <mgorny@gentoo.org>2023-06-07 15:30:07 +0200
commit813f84183818b02778d25d6e605b22a2e8961d36 (patch)
treee95f9fa436c9fb321cf9a7f76dbd52efe74eb04a
parentReplace hard-coded system libdir list (diff)
downloadcpython-813f84183818b02778d25d6e605b22a2e8961d36.tar.gz
cpython-813f84183818b02778d25d6e605b22a2e8961d36.tar.bz2
cpython-813f84183818b02778d25d6e605b22a2e8961d36.zip
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 <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 e643d8e5a4c..7bed4fae43b 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):