SIGN IN SIGN UP

[3.12] gh-109709: Fix asyncio test_stdin_broken_pipe() (GH-109710) (#109731)

gh-109709: Fix asyncio test_stdin_broken_pipe() (GH-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().
(cherry picked from commit cbbdf2c1440c804adcfc32ea0470865b3b3b8eb2)

Co-authored-by: Victor Stinner <vstinner@python.org>
M
Miss Islington (bot) committed
c7cbd82e62d22b6b1c6d4e95dbbd1db16c321533
Parent: 551aa6a
Committed by GitHub <noreply@github.com> on 10/2/2023, 3:21:51 PM