[issue12623] "universal newlines" subprocess support broken with select- and poll-based communicate()

Chris Jerdonek report at bugs.python.org
Wed Aug 15 21:38:32 CEST 2012


Chris Jerdonek added the comment:

Andrew, I'm not sure if this is the issue, but it seems like the only tests in which input is passed to communicate() with universal newlines is when stdin is the only PIPE, i.e.:

    def test_universal_newlines_communicate_stdin(self):
        # universal newlines through communicate(), with only stdin

IIRC, the select() and poll() implementations are only called when at least two of the streams are PIPE (like in the new input_none test I added recently).  Have you tried passing input to communicate() with at least two pipes (e.g. stdin and stdout)?

----------

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


More information about the Python-bugs-list mailing list