Open pylint-bot opened 8 years ago
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?):
For the record, it is expected that the first if
branch is not taken for builtin modules, while it is actually taken for modules written in Python. This needs a test for a builtin module such as sys and for a module in Python, such as collections.
Originally reported by: BitBucket: ceridwenv, GitHub: @ceridwen?
At the moment, there are no tests to call module_build() or inspect_build() with a path value that's not None. Since module_build() is only called on builtin modules and
__file__
is never set for builtins, the first getattr always evaluates to None.The only call to inspect_build() with a path argument at all is in module_build().