mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
OSX doesn't check sched_get_priority_(min/max) argument
This commit is contained in:
parent
4e36d5ae88
commit
539b6c41ff
1 changed files with 4 additions and 2 deletions
|
@ -848,8 +848,10 @@ class PosixTester(unittest.TestCase):
|
|||
self.assertIsInstance(lo, int)
|
||||
self.assertIsInstance(hi, int)
|
||||
self.assertGreaterEqual(hi, lo)
|
||||
self.assertRaises(OSError, posix.sched_get_priority_min, -23)
|
||||
self.assertRaises(OSError, posix.sched_get_priority_max, -23)
|
||||
# OSX evidently just returns 15 without checking the argument.
|
||||
if sys.platform != "darwin":
|
||||
self.assertRaises(OSError, posix.sched_get_priority_min, -23)
|
||||
self.assertRaises(OSError, posix.sched_get_priority_max, -23)
|
||||
|
||||
@unittest.skipUnless(hasattr(posix, 'sched_setscheduler'), "can't change scheduler")
|
||||
def test_get_and_set_scheduler_and_param(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue