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()
             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 <rep...@bugs.python.org>
<http://bugs.python.org/issue13878>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to