8000 Fixed mypy errors · IBMZ-Linux-OSS-Python/anyio@cc9a328 · GitHub
[go: up one dir, main page]

Skip to content

Commit cc9a328

Browse files
committed
Fixed mypy errors
1 parent 4662371 commit cc9a328

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_taskgroups.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def task_fn(*, task_status: TaskStatus = TASK_STATUS_IGNORED) -> None:
237237

238238
async with anyio.create_task_group() as tg:
239239
with pytest.raises(TypeError, match="to be synchronous$"):
240-
await tg.start(task_fn) # type: ignore[arg-type]
240+
await tg.start(task_fn)
241241

242242

243243
async def test_host_exception() -> None:
@@ -862,6 +862,7 @@ async def fn() -> None:
862862

863863
assert len(exc.value.exceptions) == 2
864864
assert str(exc.value.exceptions[0]) == "parent task failed"
865+
assert isinstance(exc.value.exceptions[1], ExceptionGroup)
865866
assert str(exc.value.exceptions[1].exceptions[0]) == "child task failed"
866867

867868

0 commit comments

Comments
 (0)
0