New submission from Bohuslav "Slavek" Kabrda <bkab...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue15178> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com