Skip to content

Commit 4e97652

Browse files
committed
remove raises_group alias, doc fixes after review
1 parent 309030c commit 4e97652

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

doc/en/how-to/assert.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ Check the documentation on :class:`pytest.RaisesGroup` and :class:`pytest.Raises
225225
if very_unlucky():
226226
excs.append(EXTREMELYBADERROR())
227227
raise ExceptionGroup("", excs)
228-
# this passes regardless of if there's other exceptions
228+
# This passes regardless of if there's other exceptions.
229229
assert excinfo.group_contains(ValueError)
230-
# you can't simply list all exceptions you *don't* want to get here
230+
# You can't simply list all exceptions you *don't* want to get here.
231231
232232
233233
There is no good way of using :func:`excinfo.group_contains() <pytest.ExceptionInfo.group_contains>` to ensure you're not getting *any* other exceptions than the one you expected.

src/pytest/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
from _pytest.python_api import raises
6363
from _pytest.raises_group import RaisesExc
6464
from _pytest.raises_group import RaisesGroup
65-
from _pytest.raises_group import RaisesGroup as raises_group
6665
from _pytest.recwarn import deprecated_call
6766
from _pytest.recwarn import WarningsRecorder
6867
from _pytest.recwarn import warns
@@ -167,7 +166,6 @@
167166
"mark",
168167
"param",
169168
"raises",
170-
"raises_group",
171169
"register_assert_rewrite",
172170
"set_trace",
173171
"skip",

0 commit comments

Comments
 (0)