This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients conf, exarkun, r.david.murray
Date 2009-06-01.13:37:21
SpamBayes Score 6.324403e-08
Marked as misclassified No
Message-id <>
No need to apologize, and thank you for taking the time to learn this
stuff.  (Six months ago I didn't know how the python unit test suite
worked either...and I keep learning new things.)

For me your new test fails...and it isn't quite the one I had in mind.
The test fails because with your patch pydoc correctly reports that
there is no documentation for the non-existent temrinal module, while
your test is expecting it to report a missing module.

(This makes me the existing behavior of pydoc optimal?  With
this patch in place would it be better to report that there is no such
module rather than that there is no documentation found?  But let's
ignore that issue for the moment since this patch is required even if we
were to change that message.)

The test I had in mind would be a file containing:

    import test.i_dont_exist.neither_do_i

In that case, your patch will fail, because the error message will
report that "i_dont_exist" can't be found.

It's funny how these seemingly simple things turn out to be not quite so
simple.  Perhaps we could extract the last token (the module name) from
the error message, and only do the "no doc" message if it is equal to
the last element of the path name.
Date User Action Args
2009-06-01 13:37:23r.david.murraysetrecipients: + r.david.murray, exarkun, conf
2009-06-01 13:37:23r.david.murraysetmessageid: <>
2009-06-01 13:37:22r.david.murraylinkissue5230 messages
2009-06-01 13:37:21r.david.murraycreate