diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-08-16 22:46:04 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-08-16 22:46:04 (GMT) |
commit | ae6ae025d10d35cf7f125b55f4260826ed0c69b8 (patch) | |
tree | 56431da2ffae4fed7233db02e57a1ded6ea51be7 | |
parent | ae0cbde2314b5aa939296ad36b4fabc7218e56ed (diff) | |
download | cpython-ae6ae025d10d35cf7f125b55f4260826ed0c69b8.zip cpython-ae6ae025d10d35cf7f125b55f4260826ed0c69b8.tar.gz cpython-ae6ae025d10d35cf7f125b55f4260826ed0c69b8.tar.bz2 |
some *nixes decided not to call init process 1 (closes #12763)
-rw-r--r-- | Lib/test/test_posix.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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) |