summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posix.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-08-03 03:09:37 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-08-03 03:09:37 (GMT)
commit539b6c41ffe5962af72ab394d87ded296ce0d19a (patch)
tree25d27e6ccb949d901974bb6b9eb43bfdebd857eb /Lib/test/test_posix.py
parent4e36d5ae883ef2718a8599ad1313679f4e7483c1 (diff)
downloadcpython-539b6c41ffe5962af72ab394d87ded296ce0d19a.zip
cpython-539b6c41ffe5962af72ab394d87ded296ce0d19a.tar.gz
cpython-539b6c41ffe5962af72ab394d87ded296ce0d19a.tar.bz2
OSX doesn't check sched_get_priority_(min/max) argument
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r--Lib/test/test_posix.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index 3fe791b..e43379e 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -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):