[8.0.x] fix incorrect examples for group_contains (#11897)
Co-authored-by: John Litborn <11260241+jakkdl@users.noreply.github.com>
This commit is contained in:
parent
73371a03da
commit
a76aa6ff80
|
@ -154,7 +154,7 @@ method to test for exceptions returned as part of an :class:`ExceptionGroup`:
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
def test_exception_in_group():
|
def test_exception_in_group():
|
||||||
with pytest.raises(RuntimeError) as excinfo:
|
with pytest.raises(ExceptionGroup) as excinfo:
|
||||||
raise ExceptionGroup(
|
raise ExceptionGroup(
|
||||||
"Group message",
|
"Group message",
|
||||||
[
|
[
|
||||||
|
@ -176,7 +176,7 @@ exception at a specific level; exceptions contained directly in the top
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
def test_exception_in_group_at_given_depth():
|
def test_exception_in_group_at_given_depth():
|
||||||
with pytest.raises(RuntimeError) as excinfo:
|
with pytest.raises(ExceptionGroup) as excinfo:
|
||||||
raise ExceptionGroup(
|
raise ExceptionGroup(
|
||||||
"Group message",
|
"Group message",
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue