diff --git a/doc/en/reference.rst b/doc/en/reference.rst index 16bf3cf7938..731037b0d3b 100644 --- a/doc/en/reference.rst +++ b/doc/en/reference.rst @@ -126,7 +126,7 @@ Add warning filters to marked test items. .. code-block:: python - @pytest.mark.warnings("ignore:.*usage will be deprecated.*:DeprecationWarning") + @pytest.mark.filterwarnings("ignore:.*usage will be deprecated.*:DeprecationWarning") def test_foo(): ...