You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under Python 3.11.0a7 the current coverage release fails to successfully compile the CTracer due to changes in the underlying PyCodeObject representation. python/cpython#91666 is probably a good place to start looking into this if you weren't already aware of the changes.
coverage/ctracer/tracer.c: In function ‘CTracer_handle_call’:
coverage/ctracer/tracer.c:533:46: error: ‘PyCodeObject’ {aka ‘struct PyCodeObject’} has no member named ‘co_code’
533 | PyObject * pCode = MyFrame_GetCode(frame)->co_code;
| ^~
coverage/ctracer/tracer.c: In function ‘CTracer_handle_return’:
coverage/ctracer/tracer.c:701:54: error: ‘PyCodeObject’ {aka ‘struct PyCodeObject’} has no member named ‘co_code’
701 | PyObject * pCode = MyFrame_GetCode(frame)->co_code;
| ^~
As always, thank you so much for the most valuable package in Python. 😄
Activity
nedbat commentedon May 2, 2022
I've fixed the compilation errors in the nedbat/three-eleven-beta branch, but the results are wrong for generators. I'm not sure what detail I'm missing. @markshannon? @vstinner?
vstinner commentedon May 2, 2022
See also my WIP PR: #1353
nedbat commentedon May 12, 2022
This is fixed in 956f0fd.
nedbat commentedon May 13, 2022
This is now released as part of coverage 6.3.3.
py-coverage: update to 6.4.4.
py-coverage: update to 6.4.4.
py-coverage: update to 6.4.4.
py-coverage: update to 6.4.4.