"include" should take precedence over "is stdlib" · Issue #138 · nedbat/coveragepy (original) (raw)

Dave McLain reported this in irc:

If he explicitly specifies a source file with include= in the coverage constructor, and that file is in the python lib installation directory, then it isn't covered, because the "is stdlib" check kicks in before the "is included" check.

If the user specifies a file to measure, it should be measured, no matter what.