[issue15178] Doctest should handle situations when test files are not readable

R. David Murray report at bugs.python.org
Mon Jun 25 16:01:04 CEST 2012


R. David Murray <rdmurray at bitdance.com> added the comment:

Great, thanks.

There's a loop around testfiles.  I think it would be nicer to not call sys.exit.  You could at the same time fix what appears to be a bug in the loop code.  It looks like 1 is currently returned only if the last file fails.

Hmm, and given that there is a bug, adding tests would be great if you are up for it.  I don't think there are currently any tests of the doctest command line functionality.  That's more complicated than writing the fix, though :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15178>
_______________________________________


More information about the Python-bugs-list mailing list