Re: [Twisted-Python] deferLater with trial issue

2012-05-24 Thread Conway, Nicholas J
;An HTML attachment was scrubbed... >URL: >http://twistedmatrix.com/pipermail/twisted-python/attachments/20120523/3e0 >655d0/attachment.html > >-- > >Message: 3 >Date: Thu, 24 May 2012 00:04:00 +0200 >From: Laurens Van Houtven <_...@lvh.cc

Re: [Twisted-Python] deferLater with trial issue

2012-05-23 Thread Itamar Turner-Trauring
On 05/23/2012 06:04 PM, Laurens Van Houtven wrote: > You're supposed to clean up whatever junk you left in the reactor after your > test. Do that in the tearDown method. > An excellent way to do that is to not use the reactor for scheduling time in tests; this has the additional benefit of lettin

Re: [Twisted-Python] deferLater with trial issue

2012-05-23 Thread Laurens Van Houtven
You're supposed to clean up whatever junk you left in the reactor after your test. Do that in the tearDown method. cheers lvh On 23 May 2012, at 23:30, Conway, Nicholas J wrote: > Hi, > > I have a class that needs to kick off a method the repeatedly gets call every > so many seconds, lets s

[Twisted-Python] deferLater with trial issue

2012-05-23 Thread Conway, Nicholas J
Hi, I have a class that needs to kick off a method the repeatedly gets call every so many seconds, lets say 2 seconds. I chose to use task.deferLater to do this, but seems like LoopingCall gives similar results.. I've boiled it down to the following example from twisted.internet import re