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.
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index a098fc0..1af6cf4 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -840,6 +840,8 @@
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