Updated python_api+recwarn to reflect changes
This commit is contained in:
parent
591176a57a
commit
baf694b7af
|
@ -883,14 +883,6 @@ def raises( # noqa: F811
|
||||||
...
|
...
|
||||||
>>> assert exc_info.type is ValueError
|
>>> 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**
|
**Legacy form**
|
||||||
|
|
||||||
It is possible to specify a callable by passing a to-be-called lambda::
|
It is possible to specify a callable by passing a to-be-called lambda::
|
||||||
|
|
|
@ -144,14 +144,6 @@ def warns( # noqa: F811
|
||||||
...
|
...
|
||||||
Failed: DID NOT WARN. No warnings of type ...UserWarning... were emitted...
|
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
|
__tracebackhide__ = True
|
||||||
if not args:
|
if not args:
|
||||||
|
|
Loading…
Reference in New Issue