I came across this code snippet from doit a while ago, and was wondering about the comment about ignoring coverage:
# lazy way to ignore coverage in this file
if True: # pragma: no cover
def main():
import sys
from doit.doit_cmd import DoitMain
sys.exit(DoitMain().run(sys.argv[1:]))
if __name__ == '__main__':
main()
What coverage is the writer referencing and what exactly happens here? code coverage related?