Skip to content

Commit a4ed6ed

Browse files
authored
bpo-38614: Increase asyncio test_communicate() timeout (GH-16995)
Fix test_communicate() of test_asyncio.test_subprocess: use support.LONG_TIMEOUT (5 minutes), instead of 1 minute.
1 parent 6c3e66a commit a4ed6ed

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_asyncio/test_subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ async def run(data):
143143
return proc.returncode, stdout
144144

145145
task = run(b'some data')
146-
task = asyncio.wait_for(task, 60.0)
146+
task = asyncio.wait_for(task, support.LONG_TIMEOUT)
147147
exitcode, stdout = self.loop.run_until_complete(task)
148148
self.assertEqual(exitcode, 0)
149149
self.assertEqual(stdout, b'some data')
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix test_communicate() of test_asyncio.test_subprocess: use
2+
``support.LONG_TIMEOUT`` (5 minutes), instead of just 1 minute.

0 commit comments

Comments
 (0)