[issue40372] doctest example programs should exit 1 if any test fails

New submission from Andreas Sommer <andreas.sommer87@googlemail.com>: Documentation recommends calling `doctest.testmod()`, but exits with code 0 even if a test fails. ---------- assignee: docs@python components: Documentation messages: 367086 nosy: Andreas Sommer, docs@python priority: normal severity: normal status: open title: doctest example programs should exit 1 if any test fails type: enhancement versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40372> _______________________________________

Change by Roundup Robot <devnull@psf.upfronthosting.co.za>: ---------- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +18997 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19673 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40372> _______________________________________

Change by Rémi Lapeyre <remi.lapeyre@henki.fr>: ---------- nosy: +remi.lapeyre, tim.peters versions: -Python 2.7, Python 3.5, Python 3.6 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40372> _______________________________________

Change by Raymond Hettinger <raymond.hettinger@gmail.com>: ---------- assignee: docs@python -> tim.peters _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40372> _______________________________________
participants (4)
-
Andreas Sommer
-
Raymond Hettinger
-
Roundup Robot
-
Rémi Lapeyre