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 5f624a0 commit 9df724eCopy full SHA for 9df724e
Lib/test/test_asyncio/test_taskgroups.py
@@ -840,6 +840,8 @@ async def test_taskgroup_without_parent_task(self):
840
coro = asyncio.sleep(0)
841
with self.assertRaisesRegex(RuntimeError, "has not been entered"):
842
tg.create_task(coro)
843
+ # We still have to await coro to avoid a warning
844
+ await coro
845
846
async def test_coro_closed_when_tg_closed(self):
847
async def run_coro_after_tg_closes():
0 commit comments