some *nixes decided not to call init process 1 (closes #12763)

This commit is contained in:
Benjamin Peterson 2011-08-16 17:46:04 -05:00
parent ae0cbde231
commit ae6ae025d1

View file

@ -862,7 +862,7 @@ class PosixTester(unittest.TestCase):
try:
init = posix.sched_getscheduler(1)
except OSError as e:
if e.errno != errno.EPERM:
if e.errno != errno.EPERM and e.errno != errno.ESRCH:
raise
else:
self.assertIn(init, possible_schedulers)