Skip to content

Commit e590a85

Browse files
thesamesammgorny
authored andcommitted
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>
1 parent 4db39a5 commit e590a85

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_os/test_posix.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,6 +2097,7 @@ def test_setsigdef_wrong_type(self):
20972097
os.environ, setsigdef=[signal.NSIG, signal.NSIG+1])
20982098

20992099
@requires_sched
2100+
@unittest.skip('Gentoo: fails when PORTAGE_NICENESS is set')
21002101
@unittest.skipIf(sys.platform.startswith(('freebsd', 'netbsd')),
21012102
"bpo-34685: test can fail on BSD")
21022103
def test_setscheduler_only_param(self):
@@ -2117,6 +2118,7 @@ def test_setscheduler_only_param(self):
21172118
support.wait_process(pid, exitcode=0)
21182119

21192120
@requires_sched
2121+
@unittest.skip('Gentoo: fails when PORTAGE_NICENESS is set')
21202122
@unittest.skipIf(sys.platform.startswith(('freebsd', 'netbsd')),
21212123
"bpo-34685: test can fail on BSD")
21222124
@unittest.skipIf(platform.libc_ver()[0] == 'glibc' and

0 commit comments

Comments
 (0)