Skip to content

Instantly share code, notes, and snippets.

@thesamesam
Created December 8, 2021 02:45

Revisions

  1. thesamesam created this gist Dec 8, 2021.
    31 changes: 31 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    From c08c30a7b6bf418dc8dd43e755eba82ac816be4b Mon Sep 17 00:00:00 2001
    From: Sam James <sam@gentoo.org>
    Date: Wed, 8 Dec 2021 02:10:34 +0000
    Subject: [PATCH] Skip sched/priority tests

    ---
    Lib/test/test_posix.py | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
    index 890b7e0..e379f08 100644
    --- a/Lib/test/test_posix.py
    +++ b/Lib/test/test_posix.py
    @@ -1725,6 +1725,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):
    @@ -1745,6 +1746,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):
    --
    2.34.1