[issue29642] Why does unittest.TestLoader.discover still rely on existence of __init__.py files?

INADA Naoki report at bugs.python.org
Tue Feb 28 02:51:39 EST 2017


INADA Naoki added the comment:

When using import, (namespace) package name is explicitly specified.
Only specified name is searched.

In test loader's case, there are no such limit.
Loader may search millions of completely unrelated directories.
It may include directories in NFS or samba over slow network.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29642>
_______________________________________


More information about the Python-bugs-list mailing list