From: Benjamin Peterson Date: Tue, 16 Aug 2011 22:46:04 +0000 (-0500) Subject: some *nixes decided not to call init process 1 (closes #12763) X-Git-Tag: v3.3.0a1~1692 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae6ae025d10d35cf7f125b55f4260826ed0c69b8;p=thirdparty%2FPython%2Fcpython.git 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 af64a6f56b02..6a3c33f3a1bd 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)