[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

Alex Shkop report at bugs.python.org
Wed Apr 29 08:13:41 CEST 2015


Alex Shkop added the comment:

Yes. That is how issue23882_find_all.patch works. I just removed hte condition

        if (not namespace and
            not os.path.isfile(os.path.join(full_path, '__init__.py'))):
            return None, False
 
This makes namespace parameter redundant. Can I remove it?

----------

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


More information about the Python-bugs-list mailing list