[issue13886] readline-related test_builtin failure

Martin Panter report at bugs.python.org
Mon Dec 5 22:31:00 EST 2016


Martin Panter added the comment:

input-readline.v2.patch sets stderr=DEVNULL so that the prompt does not come out in the test log.

A disadvantage of this is that if there is a failure, any error messages, stack trace, etc is also lost. To fix this properly, we would probably have to capture stderr using a generalized communicate() loop, like I have done at the bottom of <https://hg.python.org/cpython/annotate/v3.6.0b4/Lib/test/test_readline.py#l231> (see also Issue 1260171).

----------
dependencies:  -Change input() to always prompt to stderr
Added file: http://bugs.python.org/file45771/input-readline.v2.patch

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


More information about the Python-bugs-list mailing list