Skip to content

Commit 9df724e

Browse files
authored
Update Lib/test/test_asyncio/test_taskgroups.py
1 parent 5f624a0 commit 9df724e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_asyncio/test_taskgroups.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,8 @@ async def test_taskgroup_without_parent_task(self):
840840
coro = asyncio.sleep(0)
841841
with self.assertRaisesRegex(RuntimeError, "has not been entered"):
842842
tg.create_task(coro)
843+
# We still have to await coro to avoid a warning
844+
await coro
843845

844846
async def test_coro_closed_when_tg_closed(self):
845847
async def run_coro_after_tg_closes():

0 commit comments

Comments
 (0)