Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 662c60d26183 by Charles-François Natali in branch '3.2':
Issue #13878: Fix random test_sched failures.
http://hg.python.org/cpython/rev/662c60d26183
New changeset e35091b95813 by Charles-François Natali in branch
Charles-François Natali neolo...@free.fr added the comment:
Should be fixed now, thanks.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13878
Charles-François Natali neolo...@free.fr added the comment:
Well, it's not really needed, as long as scheduler deals correctly
with expired deadlines.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13878
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Ah, I suppose that makes sense.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13878
___
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Patch looks good, but you might want to make this change to test_priority:
l = []
fun = lambda x: l.append(x)
scheduler = sched.scheduler(time.time, time.sleep)
+now = time.time()
Charles-François Natali neolo...@free.fr added the comment:
Here's another failure due to the same type of race:
==
FAIL: test_queue (test.test_sched.TestCase)
Charles-François Natali neolo...@free.fr added the comment:
for x in [0.05, 0.04, 0.03, 0.02, 0.01]:
z = scheduler.enter(x, 1, fun, (x,))
Since the test uses relative times, if the process is preempted more than 0.01s
between two calls to enter (or if the clock goes backwards), the
New submission from Nadeem Vawda nadeem.va...@gmail.com:
http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/4072/steps/test/logs/stdio:
FAIL: test_enter (test.test_sched.TestCase)
--
Traceback
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Oops, those links should be:
http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/4072/steps/test/logs/stdio
and:
http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/4062/steps/test/logs/stdio