We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73371a0 commit a76aa6fCopy full SHA for a76aa6f
doc/en/how-to/assert.rst
@@ -154,7 +154,7 @@ method to test for exceptions returned as part of an :class:`ExceptionGroup`:
154
.. code-block:: python
155
156
def test_exception_in_group():
157
- with pytest.raises(RuntimeError) as excinfo:
+ with pytest.raises(ExceptionGroup) as excinfo:
158
raise ExceptionGroup(
159
"Group message",
160
[
@@ -176,7 +176,7 @@ exception at a specific level; exceptions contained directly in the top
176
177
178
def test_exception_in_group_at_given_depth():
179
180
181
182
0 commit comments