Skip to content

Instantly share code, notes, and snippets.

@thesamesam
Created December 8, 2021 02:45
Show Gist options
  • Save thesamesam/63916661d275a18b4fc322408bda3912 to your computer and use it in GitHub Desktop.
Save thesamesam/63916661d275a18b4fc322408bda3912 to your computer and use it in GitHub Desktop.
From c08c30a7b6bf418dc8dd43e755eba82ac816be4b Mon Sep 17 00:00:00 2001
From: Sam James <[email protected]>
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment