R. David Murray <rdmur...@bitdance.com> added the comment: Thanks. The unit tests don't pass, though, at least not when I apply the patch to trunk. I get three failures. So the patch isn't correct as it stands. 'path' is the full module path (test.i_am_not_here in the case of one of the test failures), but what appears in the error message is just the name of the module that wasn't found.
Also consider the case where the import is 'import some.nested.module', and the module that isn't found is 'nested'. In fact it may be worth writing an additional test for that case. Also I'd recommend renaming badimport_module.py pydoc_badimport.py so as to be parallel to the other pydoc auxiliary test files. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5230> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com