Fix ci for 3.6 / asyncio / test_stdin_broken_pipe (#7212)

This commit is contained in:
Yury Selivanov 2018-05-29 14:57:38 -04:00 committed by GitHub
parent 5e9e9db9d9
commit 6aacc160a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -210,6 +210,7 @@ class SubprocessMixin:
@asyncio.coroutine @asyncio.coroutine
def write_stdin(proc, data): def write_stdin(proc, data):
yield from asyncio.sleep(0.5, loop=self.loop)
proc.stdin.write(data) proc.stdin.write(data)
yield from proc.stdin.drain() yield from proc.stdin.drain()