
Dec. 3, 2018
8:04 a.m.
On 01/12/2018 16:09, Kyle Altendorf wrote:
On November 29, 2018 8:10:41 AM EST, Chris Withers <chris@withers.org> wrote:
I've noticed that code coverage doesn't appear to be recorded when code
is executed in something that has been deferToThread'ed.
Is this a known issue? Does anyone have an explanation?
Are you using coverage.py? I don't know offhand but does Twisted use `thread` or `threading`?
https://coverage.readthedocs.io/en/coverage-4.2/trouble.html#things-that-don...
You have to be using one of those to use threads in Python. Does Twisted use the older/lower level `thread` library? Chris