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

[Twisted-Python] Multiple transmissions via SMTPClient

2012-05-23 Thread Jason J. W. Williams
Hi Guys, I've been banging my head on this for a few days so I thought I'd ping folks here. Been trying to modify twisted.mail.smtp.ESMTPClient to allow the sending of more than one message over a single TCP connection. I've changed the behavior of smtpState_data() so that it sets the next state