Message96369
Agreed - particularly since that corner case can still be tested through
doctest if desired by using ELLIPSIS instead of IGNORE_EXCEPTION_DETAIL.
The patches mostly look good, but the doc changes should be updated to
indicate that using ELLIPSIS doesn't handle the case of mismatched
module names.
E.g. """Note that :const:`ELLIPSIS` can also be used to ignore the
details of the exception message, but such a test may still fail based
on whether or not the module details are printed as part of the
exception name. Using :const:`IGNORE_EXCEPTION_DETAIL` is also the only
clear way to write a doctest that doesn't care about the exception
detail yet continues to pass under Python releases prior to 2.4 (doctest
directives appear to be comments to them).""" |
|
Date |
User |
Action |
Args |
2009-12-14 02:46:54 | ncoghlan | set | recipients:
+ ncoghlan, lregebro, r.david.murray |
2009-12-14 02:46:54 | ncoghlan | set | messageid: <1260758814.86.0.616159200331.issue7490@psf.upfronthosting.co.za> |
2009-12-14 02:46:53 | ncoghlan | link | issue7490 messages |
2009-12-14 02:46:53 | ncoghlan | create | |
|