Closed rjungwirth closed 4 years ago
this is a big "gotcha"! Simply importing PTVSD suppresses code coverage regardless of whether you use the functionality or not.
Please add a note to the documentation so others don't waste their time figuring out what is wrong with their code!
This shouldn't be the case for ptvsd 5.x / debugpy anymore, since it doesn't import pydevd unless and until the module is actually used - merely importing it does nothing.
Environment data
Actual behavior
import ptvsd module suppresses coverage reporting for all execution after import
Expected behavior
importing ptvsd should not cause coverage reporting to be supressed
Steps to reproduce:
observe:
test case 1 succeeds (no importing PTVSD == full coverage reporting)
test case 2 fails: importing PTVSD causes coverage reporting to stop for all subsequent execution steps in script