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 4499161 commit 4929414Copy full SHA for 4929414
Lib/test/test_posix.py
@@ -2036,6 +2036,12 @@ def test_setscheduler_only_param(self):
2036
@requires_sched
2037
@unittest.skipIf(sys.platform.startswith(('freebsd', 'netbsd')),
2038
"bpo-34685: test can fail on BSD")
2039
+ @unittest.skipIf(platform.libc_ver()[0] == 'glibc' and
2040
+ os.sched_getscheduler(0) in [
2041
+ os.SCHED_BATCH,
2042
+ os.SCHED_IDLE,
2043
+ os.SCHED_DEADLINE],
2044
+ "Skip test due to glibc posix_spawn policy")
2045
def test_setscheduler_with_policy(self):
2046
policy = os.sched_getscheduler(0)
2047
priority = os.sched_get_priority_min(policy)
0 commit comments