We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SCHED_BATCH
1 parent a5f7e02 commit ae8ec01Copy full SHA for ae8ec01
Lib/test/test_posix.py
@@ -1991,6 +1991,12 @@ def test_setscheduler_only_param(self):
1991
@requires_sched
1992
@unittest.skipIf(sys.platform.startswith(('freebsd', 'netbsd')),
1993
"bpo-34685: test can fail on BSD")
1994
+ @unittest.skipIf(platform.libc_ver()[0] == 'glibc' and
1995
+ os.sched_getscheduler(0) in [
1996
+ os.SCHED_BATCH,
1997
+ os.SCHED_IDLE,
1998
+ os.SCHED_DEADLINE],
1999
+ "Skip test due to glibc posix_spawn policy")
2000
def test_setscheduler_with_policy(self):
2001
policy = os.sched_getscheduler(0)
2002
priority = os.sched_get_priority_min(policy)
0 commit comments