[Twisted-Python] Stopping Reactor in UnitTest Callback

F Rothfuchs fabian.rothfuchs at googlemail.com
Thu Jan 10 14:58:04 EST 2013

Hey there,

I'm trying to start and stop a twisted server in a unittest:
http://dpaste.org/qwaUt/ .

Calling reactor.stop() in the callback causes a KeyboardInterrupt
exception, and tearDown gets never executed, as it's probably waiting for
the test to finish.

After calling `trial d.py` you need to run a `telnet localhost 8007`
manually to stimulate the connectionMade() method.

I'm totally stuck and would appreciate any help.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20130110/2c7c5259/attachment.htm 

More information about the Twisted-Python mailing list