On Wed, Jul 4, 2012 at 1:19 AM, ggw <
jonathan....@gyregroup.com> wrote:
> I am fairly new to python and gevent, so I'm not sure if this might break
> anything for anyone else, but it seems to restore coverage reporting.
Did you check if spawned greenlets are also covered by coverage.py
with this patch? From the code it seems that trace function is None
most of the time, except when the MAIN greenlet is running, so event
loop callbacks and spawned greenlets are excluded.
>The issue seems to be that sys.settrace() used by coverage.py doesn't like to
> see the gevent frames without expecting them.
I'm not sure what do you mean by 'gevent frame', so it's hard to
comment on it and everything below.