[Twisted-Python] Reactor questions

Itamar Shtull-Trauring itamar at itamarst.org
Thu Apr 3 11:53:59 EST 2003


On Thu, 3 Apr 2003 16:53:54 +0000
"Clark C. Evans" <cce at clarkevans.com> wrote:

> In my unit tests I often do the following.
> 
>   reactor.callLater(2, reactor.stop)
> 
> Just before the reactor starts.

reactor.crash is better for tests since you can call reactor.run again
afterwards.

-- 
Itamar Shtull-Trauring    http://itamarst.org/
http://www.zoteca.com -- Python & Twisted consulting




More information about the Twisted-Python mailing list