Skip to content

Commit 980bb5c

Browse files
authored
Docs: deprecated_call also catches FutureWarning (#14038)
1 parent 3a35fcd commit 980bb5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/en/how-to/capture-warnings.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ Ensuring code triggers a deprecation warning
286286
--------------------------------------------
287287

288288
You can also use :func:`pytest.deprecated_call` for checking
289-
that a certain function call triggers a ``DeprecationWarning`` or
290-
``PendingDeprecationWarning``:
289+
that a certain function call triggers a ``DeprecationWarning``, ``PendingDeprecationWarning`` or
290+
``FutureWarning``:
291291

292292
.. code-block:: python
293293

0 commit comments

Comments
 (0)