[Python-checkins] cpython: some *nixes decided not to call init process 1 (closes #12763)

benjamin.peterson python-checkins at python.org
Wed Aug 17 00:46:53 CEST 2011


http://hg.python.org/cpython/rev/09f2ddd3d15a
changeset:   71886:09f2ddd3d15a
parent:      71872:c821e3a54930
user:        Benjamin Peterson <benjamin at python.org>
date:        Tue Aug 16 17:46:04 2011 -0500
summary:
  some *nixes decided not to call init process 1 (closes #12763)

files:
  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
--- 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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list