Skip to content

Commit

Permalink
fix another import
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkdl committed Feb 18, 2025
1 parent 4d2c709 commit 9e38a9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/_pytest/raises_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ class RaisesGroup(AbstractRaises[BaseExceptionGroup[BaseExcT_co]]):
#. It will only catch exceptions wrapped in an exceptiongroup by default.
* With ``allow_unwrapped=True`` you can specify a single expected exception (or :class:`RaisesExc`) and it will match
the exception even if it is not inside an :exc:`ExceptionGroup`.
* With ``allow_unwrapped=True`` you can specify a single expected exception (or :class:`RaisesExc`) and it will
match the exception even if it is not inside an :exc:`ExceptionGroup`.
If you expect one of several different exception types you need to use a :class:`RaisesExc` object.
#. By default it cares about the full structure with nested :exc:`ExceptionGroup`'s. You can specify nested
Expand Down
4 changes: 2 additions & 2 deletions testing/typing_raises_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

from typing_extensions import assert_type

from _pytest._raises_group import RaisesExc
from _pytest._raises_group import RaisesGroup
from _pytest.raises_group import RaisesExc
from _pytest.raises_group import RaisesGroup


if sys.version_info < (3, 11):
Expand Down

0 comments on commit 9e38a9e

Please sign in to comment.