Skip to content

Commit 851f41a

Browse files
Varun SharmaCopilot
andcommitted
test: add start() not-entered guard to completeness test
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d549d59 commit 851f41a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/shared/test_task_group.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ async def test_task_group_not_entered_raises() -> None:
145145
ctg.cancel_scope
146146
with pytest.raises(RuntimeError, match="not been entered"):
147147
ctg.start_soon(lambda: None)
148+
with pytest.raises(RuntimeError, match="not been entered"):
149+
await ctg.start(lambda: None)
148150

149151

150152
@pytest.mark.anyio

0 commit comments

Comments
 (0)