Hi all,<br><br>I&#39;ve made py.test work with the twisted framework using greenlets to switch between twisted&#39;s mainloop and py.test&#39;s &quot;mainloop&quot;. (see attached file).<br>It currently uses monkeypatching to change 
py.test.Item&#39;s execute function. Currently missing is the ability to return twisted deferreds from setup and teardown methods.<br>I could monkeypatch py.test even more, but I&#39;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&#39;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.<br><br>- Ralf<br><br><br><br><br><br>