[Twisted-Python] deferLater with trial issue

Itamar Turner-Trauring itamar at itamarst.org
Wed May 23 17:13:35 MDT 2012


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 letting you test e.g. 
2 hour timeouts without having to wait 2 hours.

http://twistedmatrix.com/documents/current/core/howto/trial.html#auto9




More information about the Twisted-Python mailing list