pragma not recognized if tab character used
Issue #334
resolved
Pragma string with initial space gets recognized:
# pragma: no cover
It doesn't get recognized if with initial tab:
#<TAB used here>pragma: no cover
"pragma: no branch" shows the same behavior.
Comments (2)
-
-
- changed status to resolved
Fixed in 3eaac8c9319c
- Log in to comment
Hmm, you are right! Of course, best Python practice is not to use tab characters in your source files... :)
j/k, this will be an easy fix.
In the meantime, you can change the recognized pragmas with the exclude_lines configuration setting.