mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
some *nixes decided not to call init process 1 (closes #12763)
This commit is contained in:
parent
ae0cbde231
commit
ae6ae025d1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue