[issue13878] test_sched failures on Windows buildbot

Nadeem Vawda report at bugs.python.org
Sat Feb 11 20:18:31 CET 2012


Nadeem Vawda <nadeem.vawda at 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()
             for priority in [1, 2, 3, 4, 5]:
    -            z = scheduler.enterabs(0.01, priority, fun, (priority,))
    +            z = scheduler.enterabs(now + 0.01, priority, fun, (priority,))
             scheduler.run()
             self.assertEqual(l, [1, 2, 3, 4, 5])

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13878>
_______________________________________


More information about the Python-bugs-list mailing list