Skip to content

Commit

Permalink
fix sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkdl committed Jan 8, 2025
1 parent ba938bc commit 9612d1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion newsfragments/3145.feature.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
`RaisesGroup` now raises an `AssertionError` with a helpful message if it fails to match the raised exception. Previously it would let the original exception fall through, but that is now instead the ``__context__``.
`trio.testing.RaisesGroup` now raises an `AssertionError` with a helpful message if it fails to match the raised exception. Previously it would let the original exception fall through, but that is now instead the ``__context__``.
2 changes: 1 addition & 1 deletion src/trio/testing/_raises_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def matches(
_depth: int = 0,
) -> TypeGuard[MatchE]:
"""Check if an exception matches the requirements of this Matcher.
If it fails, `.fail_reason` will be set.
If it fails, ``.fail_reason`` will be set.
Examples::
Expand Down

0 comments on commit 9612d1e

Please sign in to comment.