Xavier de Gaye added the comment: Thanks for the review Pamela, indeed self.vfs is not defined.
The patched test_unittest runs without failure because the list_dir() nested function is never called. It is also never called in the un-patched version. Actually the un-patched test_discover_start_dir_is_package_calls_package_load_tests runs without failure when changing '__init__.py' of vfs to 'foo' or whatever :( ---------- _______________________________________ 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