[issue26372] Popen.communicate not ignoring BrokenPipeError

STINNER Victor report at bugs.python.org
Wed Feb 17 06:14:25 EST 2016


STINNER Victor added the comment:

> This isn't consistent with the behavior of communicate with a timeout

Right, it looks like BrokenPipeError on writing into stdin is ignored in some cases, but not in all cases.

Attached patch for Python 3.6 adds two try/except BrokenPipeError with two unit tests.

It looks like Python 2.7 has a similar bug: stdin.close() is not surrounded by try/except BrokenPipeError.

----------
nosy: +haypo

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


More information about the Python-bugs-list mailing list