coveragepy icon indicating copy to clipboard operation
coveragepy copied to clipboard

coverage with pypy 5.3.1 and gevent

Open nedbat opened this issue 8 years ago • 1 comments

Originally reported by Anonymous


Will gevent be supported on pypy?

#!python

  File "/home/travis/virtualenv/pypy-5.3.1/site-packages/coverage/collector.py", line 199, in _start_tracer

    self.concurrency, self.tracer_name(),

CoverageException: Can't support concurrency=gevent with PyTracer, only threads are supported

  • Bitbucket: https://bitbucket.org/ned/coveragepy/issue/560

nedbat avatar Jan 28 '17 13:01 nedbat

This is tricky. Concurrency isn't supported in the Python tracer because the extra conditionals that would be needed would slow down people who aren't using concurrency.

There are two constituencies that need the Python tracer: PyPy users, and people who cannot compile the C tracer. The PyPy users wouldn't mind the extra conditional, because PyPy will JIT the code (I assume). The pure-Python people would take the hit. I'm not sure what to do about that.

nedbat avatar Jan 28 '17 15:01 nedbat