This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nadeem.vawda
Recipients giampaolo.rodola, nadeem.vawda, neologix
Date 2012-02-11.19:18:30
SpamBayes Score 0.0029263168
Marked as misclassified No
Message-id <1328987911.63.0.319219760247.issue13878@psf.upfronthosting.co.za>
In-reply-to
Content
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])
History
Date User Action Args
2012-02-11 19:18:31nadeem.vawdasetrecipients: + nadeem.vawda, giampaolo.rodola, neologix
2012-02-11 19:18:31nadeem.vawdasetmessageid: <1328987911.63.0.319219760247.issue13878@psf.upfronthosting.co.za>
2012-02-11 19:18:31nadeem.vawdalinkissue13878 messages
2012-02-11 19:18:31nadeem.vawdacreate