[Twisted-Python] Using a custom reactor in twisted trial for test cases?

2009-10-30 Thread Crispin Wellington
use my custom reactor? Is there a way to get my reactor into that list somehow? Is this not a supported feature of trial? And... if this isn't a supported feature, what is the best way to get a TestCase that will run under that reactor? Look forward to any help people can offer me. With kin

Re: [Twisted-Python] Using a custom reactor in twisted trial for test cases?

2009-11-01 Thread Crispin Wellington
On Fri, 2009-10-30 at 14:06 +, exar...@twistedmatrix.com wrote: > It looks like your custom reactor is mainly in charge of making sure > stackless.schedule() gets called at least once every 0.1 seconds. Is > that right? If so, a much better approach would be to use > twisted.internet.task.

Re: [Twisted-Python] Using a custom reactor in twisted trial for test cases?

2009-11-01 Thread Crispin Wellington
On Fri, 2009-10-30 at 14:06 +, exar...@twistedmatrix.com wrote: > As for your actual question, if you want a new reactor to be as usable > as one of the existing ones, you need to write a plugin declaring its > available. Take a look at twisted/plugins/twisted_reactors.py for some > example

Re: [Twisted-Python] Using a custom reactor in twisted trial for test cases?

2009-11-01 Thread Crispin Wellington
On Mon, 2009-11-02 at 01:12 -0500, Glyph Lefkowitz wrote: > On Nov 1, 2009, at 11:17 PM, Crispin Wellington wrote: > > I tried using LoopingCall, but it does not work. It only calls the > > scheduler once. I think this has to do with the fact that the > > stackless >