[issue26859] unittest fails with "Start directory is not importable" when trying to run sourceless tests
Xavier de Gaye
report at bugs.python.org
Wed Jun 22 04:03:09 EDT 2016
Xavier de Gaye added the comment:
> the list_dir() nested function is never called
Verifying that load_tests is called is the purpose of this test. In this case should_recurse is false in _find_tests() and os.listdir() is not invoked by this method.
This new patch does not use vfs and list_dir and uses subtests to also check that TestLoader.discover() does consider that a path refers to a package directory when it contains an '__init__.pyc' file and no '__init__.py' file, and vice-versa.
----------
Added file: http://bugs.python.org/file43507/unittest_3.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26859>
_______________________________________
More information about the Python-bugs-list
mailing list