Open FloatingSunfish opened 3 years ago
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
coverage
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:
pragma
a = my_function1() if debug: # pragma: no cover msg = "blah blah" log_message(msg, a) b = my_function2()
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: