]> granicus.if.org Git - python/commit
asyncio, tulip issue 190: Process.communicate() must ignore BrokenPipeError
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 17 Jul 2014 10:25:27 +0000 (12:25 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 17 Jul 2014 10:25:27 +0000 (12:25 +0200)
commitcc996b57890a251cef83101d5cfcbc58179cba5f
tree6e4192cd348196825f50ddc81dad99edbcd0902b
parent38bf87c7f285b9ad03feea765ddad9f607876591
asyncio, tulip issue 190: Process.communicate() must ignore BrokenPipeError

If you want to handle the BrokenPipeError, you can easily reimplement
communicate().

Add also a unit test to ensure that stdin.write() + stdin.drain() raises
BrokenPipeError.
Doc/library/asyncio-subprocess.rst
Lib/asyncio/subprocess.py
Lib/test/test_asyncio/test_subprocess.py