diff options
author | Sam James <sam@gentoo.org> | 2021-12-08 02:10:34 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-12-07 08:44:48 +0100 |
commit | f731caa9f634326c1a20044cf8b801899004be3c (patch) | |
tree | e79f7f1a95b1362f08aa7d2fea3394ee409f3423 | |
parent | Skip tests which interact with invalid UTF-8 files (diff) | |
download | cpython-gentoo-3.10.9.tar.gz cpython-gentoo-3.10.9.tar.bz2 cpython-gentoo-3.10.9.zip |
Skip sched/priority testsgentoo-3.10.9
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 19bc8853159..97509e64fef 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -1741,6 +1741,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): @@ -1761,6 +1762,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): |