We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad74d50 commit bb9474fCopy full SHA for bb9474f
1 file changed
Lib/test/test_asyncio/test_subprocess.py
@@ -218,10 +218,8 @@ def prepare_broken_pipe_test(self):
218
219
# the program ends before the stdin can be feeded
220
create = asyncio.create_subprocess_exec(
221
- sys.executable,
222
- '-c', 'print("hello", flush=True)',
+ sys.executable, '-c', 'pass',
223
stdin=subprocess.PIPE,
224
- stdout=subprocess.PIPE,
225
loop=self.loop)
226
proc = self.loop.run_until_complete(create)
227
return (proc, large_data)
@@ -230,7 +228,7 @@ def test_stdin_broken_pipe(self):
230
228
proc, large_data = self.prepare_broken_pipe_test()
231
229
232
async def write_stdin(proc, data):
233
- await proc.stdout.readline()
+ await asyncio.sleep(0.5, loop=self.loop)
234
proc.stdin.write(data)
235
await proc.stdin.drain()
236
0 commit comments