-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docstring at top of file effects test coverage #24179
Comments
What version of python are you using? |
3.12.2 with Coverage 7.6.1 |
same as another issue filed by Ben, I don't control this aspect so I think I am going to just close as out of scope copied from #24171 (comment): huh even with the right python version I am not seeing the comments impact code coverage. Did you have any pytest arguments during this run? I think I can just close this since the decision on the code coverage percentage / numbers are dictated by coverage.py and communicated the extension so in the end we don't have control over the numbers as long as they are getting there correctly. You could always try running it in the terminal python -m pytest --cov=. to see if you get a similar result because our goal is to always mirror the tool behavior. |
Should we move this upstream to pytest? |
yes I can look into doing so for coverage. Can you confirm |
Testing #22827
For a file:
The presence of the docstring at the top of the file changes coverage numbers
The text was updated successfully, but these errors were encountered: