[Python-checkins] cpython: Better fix for #12763: test_posix failure on OpenIndiana
jesus.cea
python-checkins at python.org
Sat Sep 10 01:17:29 CEST 2011
http://hg.python.org/cpython/rev/dba886806eb3
changeset: 72327:dba886806eb3
user: Jesus Cea <jcea at jcea.es>
date: Sat Sep 10 01:16:55 2011 +0200
summary:
Better fix for #12763: test_posix failure on OpenIndiana
files:
Lib/test/test_posix.py | 6 +++---
1 files changed, 3 insertions(+), 3 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,12 +862,12 @@
mine = posix.sched_getscheduler(0)
self.assertIn(mine, possible_schedulers)
try:
- init = posix.sched_getscheduler(1)
+ parent = posix.sched_getscheduler(os.getppid())
except OSError as e:
- if e.errno != errno.EPERM and e.errno != errno.ESRCH:
+ if e.errno != errno.EPERM:
raise
else:
- self.assertIn(init, possible_schedulers)
+ self.assertIn(parent, possible_schedulers)
self.assertRaises(OSError, posix.sched_getscheduler, -1)
self.assertRaises(OSError, posix.sched_getparam, -1)
param = posix.sched_getparam(0)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list