bluecarrot <fe...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue46568> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com