[py-dev] py.test and twisted

Ralf Schmitt schmir at gmail.com
Tue Feb 20 10:20:06 CET 2007


Hi all,

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.

- Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/py-dev/attachments/20070220/b18a64c0/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py.test.twisted
Type: application/octet-stream
Size: 1706 bytes
Desc: not available
Url : http://codespeak.net/pipermail/py-dev/attachments/20070220/b18a64c0/attachment.obj 


More information about the py-dev mailing list