[issue46568] non awaited coroutines on a IsolatedAsyncioTestCase results on a RuntimeWarning
bluecarrot
report at bugs.python.org
Sat Jan 29 03:53:25 EST 2022
bluecarrot <felix at kngnt.org> added the comment:
Seems that, should I add an "await asyncio.sleep(1)" in asyncTearDown, so getting
class TestConnections(IsolatedAsyncioTestCase):
async def asyncSetUp(self) -> None:
self.proxy = asyncio.create_task(EnergyAgentProxy(self.proxy_port, self.server_port, self.upstream_port))
async def asyncTearDown(self) -> None:
await asyncio.sleep(1)
is enough to "hide the problem under the carpet"... but sounds weird...
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46568>
_______________________________________
More information about the Python-bugs-list
mailing list