Sometimes you have code you want to exclude from the test coverage report, because it doesn’t really make sense to test it. For example, maybe you want to exclude: if__name__=="__main__":main() The old advice was to add something like this to .coveragerc: [report]# Regexes for lines to exclude from considerationexclude_lines= # Have to re-enable the standard pragma: pragma: no cover# Don't complain if non-runnable code isn't run:if __name__== .__main__.: But since coverage.py 7.2.0 (2023-02...