[Twisted-Python] Stopping Reactor in UnitTest Callback

F Rothfuchs fabian.rothfuchs at googlemail.com
Thu Jan 10 12:58:04 MST 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.


Thanks

Fabian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20130110/2c7c5259/attachment.html>


More information about the Twisted-Python mailing list