[py-dev] py.test and twisted

holger krekel holger at merlinux.de
Fri May 4 12:25:37 CEST 2007


On Fri, May 04, 2007 at 11:16 +0200, Ralf Schmitt wrote:
> On 4/6/07, holger krekel <holger at merlinux.de> wrote:
> >>
> >> I've made py.test work with the twisted framework using greenlets to
> >switch
> >> between twisted's mainloop and py.test's "mainloop". (see attached
> >file).
> >> It currently uses monkeypatching to change py.test.Item's execute
> >function.
> >> Currently missing is the ability to return twisted deferreds from setup
> >and
> >> teardown methods.
> >> I could monkeypatch py.test even more, but I'd rather have a method to
> >hook
> >> into py.test, and intercept any calls to user supplied functions (i.e.
> >> teardown, setup, and test methods). Any chance to get such changes
> >> integrated into py.test? I'd be willing to write them on my own and
> >would
> >> also be glad to have the py.test.twisted script be included into py.test
> 
> Hope you recovered. Do you have time to discuss twisted support now?

rather sometime from mid may, i am afraid. 
thanks for your answer, 
holger



More information about the Pytest-dev mailing list