I encountered the same issue in my Python code as well. In my case, updating the coverage version fixed the problem.