← Back to team overview

launchpad-dev team mailing list archive

Re: Please be very lenient in your test timeouts--or don't write them!


On Thursday 07 June 2012 12:58:04 Jonathan Lange wrote:
> On Tue, Jun 5, 2012 at 8:43 PM, Barry Warsaw <barry@xxxxxxxxxxxxx> wrote:
> > On Jun 05, 2012, at 11:26 AM, Julian Edwards wrote:
> >>FWIW, Twisted has a fake clock that you can wind forwards/backwards at
> >>will
> >>which is really handy for this sort of thing.
> >>
> > I have a likely much more horrible version of something similar in Mailman
> > 3.
> > 
> > http://tinyurl.com/76s46gb
> Twisted's is very much bound to the reactor, and is not really a
> generic system clock replacement. ISTR Chris Withers wrote such a
> thing that's on PyPI together with a bunch of test helpers.

Right, I had no intention of implying that Twisted's would be generically 
useful, I was just pointing out its approach.  If there's something similar 
for regular Python tests then that's great!