diff options
author | 2021-12-08 02:10:34 +0000 | |
---|---|---|
committer | 2022-03-07 05:27:34 +0000 | |
commit | 5f95496050fc63c4e3d26d7514115c1be1bcfa7b (patch) | |
tree | 862b6d047f45590df313df6c6090767263410b9f | |
parent | Fix dictionary iteration error in _ExecutorManagerThread (diff) | |
download | cpython-gentoo.tar.gz cpython-gentoo.tar.bz2 cpython-gentoo.zip |
Skip sched/priority testsgentoo
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.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 56b72f465c1..612a80bc264 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -1764,6 +1764,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): @@ -1784,6 +1785,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): |