Issue #209 duplicate

Coverage is broken with gevent

Anonymous created an issue

Coverage is broken with gevent

From what i understood, it seems that a greenlet switch inside a method cause the remaining lines to be not covered (not sure 100%)

It seems that this (just tested locally, after a pip install coverage) is fixing the issue.

May be it can have side effects, but right now, it works ok on our end.

https://raw.github.com/newbrough/coverage/2fa6300e1ce8d01c959de2253ac1c8452bd1d5da/coverage/collector.py

Do you plan to integrate this ?

Thank you

Comments (2)

  1. Ned Batchelder repo owner

    I don't plan to integrate that directly, because it sacrifices a few other features of coverage.py. I'd be very interested in improved patches, though.

  2. Log in to comment