mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-138163: skip failures if tests are run with SCHED_BATCH on glibc (GH-138576)
This commit is contained in:
parent
44991619ba
commit
492941459a
1 changed files with 6 additions and 0 deletions
|
|
@ -2036,6 +2036,12 @@ def test_setscheduler_only_param(self):
|
|||
@requires_sched
|
||||
@unittest.skipIf(sys.platform.startswith(('freebsd', 'netbsd')),
|
||||
"bpo-34685: test can fail on BSD")
|
||||
@unittest.skipIf(platform.libc_ver()[0] == 'glibc' and
|
||||
os.sched_getscheduler(0) in [
|
||||
os.SCHED_BATCH,
|
||||
os.SCHED_IDLE,
|
||||
os.SCHED_DEADLINE],
|
||||
"Skip test due to glibc posix_spawn policy")
|
||||
def test_setscheduler_with_policy(self):
|
||||
policy = os.sched_getscheduler(0)
|
||||
priority = os.sched_get_priority_min(policy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue