diff options
author | Charles-François Natali <neologix@free.fr> | 2011-09-06 17:03:35 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2011-09-06 17:03:35 (GMT) |
commit | ea0d5fcb4a6ba8f7fa7691a9e92cbec4918dcce8 (patch) | |
tree | 3e3c3175335b22c3e1189dc97be47ac396f9402c /Lib/test/test_posix.py | |
parent | e0afb16a317b71df0c538369a9fe223685d57b95 (diff) | |
download | cpython-ea0d5fcb4a6ba8f7fa7691a9e92cbec4918dcce8.zip cpython-ea0d5fcb4a6ba8f7fa7691a9e92cbec4918dcce8.tar.gz cpython-ea0d5fcb4a6ba8f7fa7691a9e92cbec4918dcce8.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r-- | Lib/test/test_posix.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ 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 |