mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #12871: sched_get_priority_(min|max) might not be defined even though
<sched.h> is available (most notably on OpenBSD when built without pthread): add an explicit configure check.
This commit is contained in:
parent
e0afb16a31
commit
ea0d5fcb4a
5 changed files with 299 additions and 309 deletions
|
@ -840,6 +840,8 @@ class PosixTester(unittest.TestCase):
|
|||
posix.sched_yield()
|
||||
|
||||
@requires_sched_h
|
||||
@unittest.skipUnless(hasattr(posix, 'sched_get_priority_max'),
|
||||
"requires sched_get_priority_max()")
|
||||
def test_sched_priority(self):
|
||||
# Round-robin usually has interesting priorities.
|
||||
pol = posix.SCHED_RR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue