Message153132
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]) |
|
Date |
User |
Action |
Args |
2012-02-11 19:18:31 | nadeem.vawda | set | recipients:
+ nadeem.vawda, giampaolo.rodola, neologix |
2012-02-11 19:18:31 | nadeem.vawda | set | messageid: <1328987911.63.0.319219760247.issue13878@psf.upfronthosting.co.za> |
2012-02-11 19:18:31 | nadeem.vawda | link | issue13878 messages |
2012-02-11 19:18:31 | nadeem.vawda | create | |
|