summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-08-16 22:46:04 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-08-16 22:46:04 (GMT)
commitae6ae025d10d35cf7f125b55f4260826ed0c69b8 (patch)
tree56431da2ffae4fed7233db02e57a1ded6ea51be7
parentae0cbde2314b5aa939296ad36b4fabc7218e56ed (diff)
downloadcpython-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.py2
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)