Skip to content

Commit

Permalink
Update trio/_core/_tests/test_run.py
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
  • Loading branch information
jakkdl and graingert authored Oct 26, 2023
1 parent 5bfb8f7 commit e803320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trio/_core/_tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2560,7 +2560,7 @@ async def raise_custom_exception_group_before(
raise ExceptionGroup("my group", [ValueError()])


def _check_exception(exc: pytest.ExceptionInfo) -> None:
def _check_exception(exc: pytest.ExceptionInfo[BaseException]) -> None:
assert isinstance(exc.value, BaseExceptionGroup)
assert len(exc.value.exceptions) == 1
assert isinstance(exc.value.exceptions[0], ValueError)
Expand Down

0 comments on commit e803320

Please sign in to comment.