diff --git a/src/_pytest/python_api.py b/src/_pytest/python_api.py index 27826863e..95a4e4420 100644 --- a/src/_pytest/python_api.py +++ b/src/_pytest/python_api.py @@ -883,14 +883,6 @@ def raises( # noqa: F811 ... >>> assert exc_info.type is ValueError - **Using with** ``pytest.mark.parametrize`` - - When using :ref:`pytest.mark.parametrize ref` - it is possible to parametrize tests such that - some runs raise an exception and others do not. - - See :ref:`parametrizing_conditional_raising` for an example. - **Legacy form** It is possible to specify a callable by passing a to-be-called lambda:: diff --git a/src/_pytest/recwarn.py b/src/_pytest/recwarn.py index d1d83ea2a..c97ad9ac9 100644 --- a/src/_pytest/recwarn.py +++ b/src/_pytest/recwarn.py @@ -144,14 +144,6 @@ def warns( # noqa: F811 ... Failed: DID NOT WARN. No warnings of type ...UserWarning... were emitted... - **Using with** ``pytest.mark.parametrize`` - - When using :ref:`pytest.mark.parametrize ref` it is possible to parametrize tests - such that some runs raise a warning and others do not. - - This could be achieved in the same way as with exceptions, see - :ref:`parametrizing_conditional_raising` for an example. - """ __tracebackhide__ = True if not args: