]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Attempt to fix test_stdin_broken_pipe on Travis (#7210)
authorYury Selivanov <yury@magic.io>
Tue, 29 May 2018 17:40:47 +0000 (13:40 -0400)
committerGitHub <noreply@github.com>
Tue, 29 May 2018 17:40:47 +0000 (13:40 -0400)
Lib/test/test_asyncio/test_subprocess.py

index 428510f771612509e2c6dc11590bf5dce42b755d..235813aa977c1e625cad5a3ba5e9a393e529a952 100644 (file)
@@ -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()