We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pragma
coverage
Currently, # pragma: no mutate comments only affect a single line.
# pragma: no mutate
The # pragma: no cover comments in Python's coverage tool work on both single lines and code blocks (e.g. functions, classes, if blocks, etc).
# pragma: no cover
Here is a link to the official documentation.
The way pragma comments work for code blocks is that they are added at the end of the line that begins the block:
a = my_function1() if debug: # pragma: no cover msg = "blah blah" log_message(msg, a) b = my_function2()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently,
# pragma: no mutate
comments only affect a single line.The
# pragma: no cover
comments in Python'scoverage
tool work on both single lines and code blocks (e.g. functions, classes, if blocks, etc).Here is a link to the official documentation.
The way
pragma
comments work for code blocks is that they are added at the end of the line that begins the block:The text was updated successfully, but these errors were encountered: