Phillip J. Eby wrote: > I've also investigated the run()/stop() issue, and as far as I can tell > this should be a non-issue for tests that run using the Twisted default > reactor (which is what Chandler uses). The reason that you aren't
That's strange, because I was testing with default reactor in a command line test app. I just retested and the symptoms are that the (unit test) program ends up in infinite loop where it gives timeout errors every now and then, and does not respond to Ctrl+C. This is under Cygwin. > reactor.waitFor(deferred, timeout) -- iterate until the deferred Since I haven't needed to use deferred's in my trivial test cases I'd need to figure out how to call this. > Heikki, does that sound about like what you need for your tests? >From the API description it looks like it would do what I need, with the caveat that I need to figure out how to deal with deferreds. But I think it should go into twisted proper. I have a need for this in M2Crypto unit tests, Grant could probably use this for zanshin unit tests etc. -- Heikki Toivonen
signature.asc
Description: OpenPGP digital signature
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Open Source Applications Foundation "Dev" mailing list http://lists.osafoundation.org/mailman/listinfo/dev
