pragma not recognized if tab character used

Issue #334 resolved
Inyeol Lee
created an issue

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)

  1. Ned Batchelder repo owner

    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.

  2. Log in to comment