commit | ae6ae025d10d35cf7f125b55f4260826ed0c69b8 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Tue Aug 16 17:46:04 2011 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Tue Aug 16 17:46:04 2011 -0500 |
tree | 56431da2ffae4fed7233db02e57a1ded6ea51be7 | |
parent | ae0cbde2314b5aa939296ad36b4fabc7218e56ed [diff] [blame] |
some *nixes decided not to call init process 1 (closes #12763)
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index af64a6f..6a3c33f 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py
@@ -862,7 +862,7 @@ 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)