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 <rep...@bugs.python.org> <http://bugs.python.org/issue26859> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com