1. Ned Batchelder
  2. coverage.py
  3. Issues
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. Log in to comment