![](https://secure.gravatar.com/avatar/acb8a5d8b51267e636e4736eee1379ea.jpg?s=120&d=mm&r=g)
Guido van Rossum wrote:
On Tue, Feb 5, 2013 at 4:45 PM, Saúl Ibarra Corretgé<saghul@gmail.com> wrote:
Nikolay Kim wrote:
i used uv_events as default event loop and ran all tulip tests with it. but those failures are not related to uv_events anyway I'd inherit uv_events.EventLoop from base_events.BaseEventLoop.
Why? There is not much code that can be reused, since timers are not needed and the _run_once function is also not applicable.
Because the test mocks base_events.socket. :-) That's not a great reason, I agree. Perhaps you and Nikolay can work on a better way to do the mocking so it doesn't rely on base_events?
I see. I modified it to inherit from BaseEventLoop now. I found a bug in the way rose executes handler callbacks (https://github.com/saghul/rose/commit/94e984cf756c3d0730acf804c18cab682cffd6...) I need to think how to implement this, probably saving the first base exception, stopping the processing and reraising it... -- Saúl Ibarra Corretgé http://saghul.net/blog | http://about.me/saghul