mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
Attempt to fix test_stdin_broken_pipe on Travis (GH-7210) (#7211)
(cherry picked from commit 4fadf0c639
)
Co-authored-by: Yury Selivanov <yury@magic.io>
This commit is contained in:
parent
cb055bcc2b
commit
b3e12c0817
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue