[New-bugs-announce] [issue15178] Doctest should handle situations when test files are not readable
Bohuslav "Slavek" Kabrda
report at bugs.python.org
Mon Jun 25 13:01:45 CEST 2012
New submission from Bohuslav "Slavek" Kabrda <bkabrda at redhat.com>:
Hi,
I think that doctest should be able to handle situations when the file that is being tested does not exist/is unreadable/etc...
Currently, doctest raises an IOError exception and the whole Python ends with an exception and backtrace.
I'm attaching a patch that fixes this and prints a simple description of what has gone wrong.
Thanks for considering!
----------
components: Library (Lib)
files: doctest-dont-end-with-exception-on-unreadable-files.patch
keywords: patch
messages: 163936
nosy: bkabrda
priority: normal
severity: normal
status: open
title: Doctest should handle situations when test files are not readable
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file26153/doctest-dont-end-with-exception-on-unreadable-files.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15178>
_______________________________________
More information about the New-bugs-announce
mailing list