]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109709: Fix asyncio test_stdin_broken_pipe() (#109710)
authorVictor Stinner <vstinner@python.org>
Fri, 22 Sep 2023 13:29:42 +0000 (15:29 +0200)
committerGitHub <noreply@github.com>
Fri, 22 Sep 2023 13:29:42 +0000 (15:29 +0200)
commitcbbdf2c1440c804adcfc32ea0470865b3b3b8eb2
tree9b6bcd31449a0045ac099e6e1a408670bcd58ec2
parent46b63ced2564ad6c3d7b65e0ea1f04fd5c7d2959
gh-109709: Fix asyncio test_stdin_broken_pipe() (#109710)

Replace harcoded sleep of 500 ms with synchronization using a pipe.

Fix also Process._feed_stdin(): catch also BrokenPipeError on
stdin.write(input), not only on stdin.drain().
Lib/asyncio/subprocess.py
Lib/test/test_asyncio/test_subprocess.py