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 <rep...@bugs.python.org>
<http://bugs.python.org/issue26372>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to