From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 29 May 2018 18:32:07 +0000 (-0700) Subject: Attempt to fix test_stdin_broken_pipe on Travis (GH-7210) (#7211) X-Git-Tag: v3.7.0b5~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3e12c0817a8308d021eab8e22486a036124b41e;p=thirdparty%2FPython%2Fcpython.git Attempt to fix test_stdin_broken_pipe on Travis (GH-7210) (#7211) (cherry picked from commit 4fadf0c639476fa50a40ec6f119f98c01e56ad95) Co-authored-by: Yury Selivanov --- diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index 428510f77161..235813aa977c 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -228,6 +228,7 @@ class SubprocessMixin: proc, large_data = self.prepare_broken_pipe_test() async def write_stdin(proc, data): + await asyncio.sleep(0.5, loop=self.loop) proc.stdin.write(data) await proc.stdin.drain()