[New-bugs-announce] [issue38614] test_asyncio: test_communicate() failed on AMD64 FreeBSD Shared 3.8
STINNER Victor
report at bugs.python.org
Mon Oct 28 08:18:15 EDT 2019
New submission from STINNER Victor <vstinner at python.org>:
AMD64 FreeBSD Shared 3.8:
https://buildbot.python.org/all/#builders/374/builds/10
This buildbot worker is known to be very slow. It became even slower recently.
ERROR: test_communicate (test.test_asyncio.test_subprocess.SubprocessMultiLoopWatcherTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/home/buildbot/python/3.8.koobs-freebsd-564d/build/Lib/test/test_asyncio/test_subprocess.py", line 147, in test_communicate
exitcode, stdout = self.loop.run_until_complete(task)
File "/usr/home/buildbot/python/3.8.koobs-freebsd-564d/build/Lib/asyncio/base_events.py", line 608, in run_until_complete
return future.result()
File "/usr/home/buildbot/python/3.8.koobs-freebsd-564d/build/Lib/asyncio/tasks.py", line 490, in wait_for
raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError
Extract of the test:
def test_communicate(self):
args = PROGRAM_CAT
async def run(data):
proc = await asyncio.create_subprocess_exec(
*args,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
)
stdout, stderr = await proc.communicate(data)
return proc.returncode, stdout
task = run(b'some data')
task = asyncio.wait_for(task, 60.0)
exitcode, stdout = self.loop.run_until_complete(task) # <==== HERE
self.assertEqual(exitcode, 0)
self.assertEqual(stdout, b'some data')
It seems like the test has an hardcoded timeout of 1 minute. The first thing that we can do is to increase this timeout to 5 minutes.
----------
components: Tests
messages: 355537
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_asyncio: test_communicate() failed on AMD64 FreeBSD Shared 3.8
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38614>
_______________________________________
More information about the New-bugs-announce
mailing list