diff --git a/doc/en/reference/reference.rst b/doc/en/reference/reference.rst index c78ebf8c1..f6dabb245 100644 --- a/doc/en/reference/reference.rst +++ b/doc/en/reference/reference.rst @@ -241,7 +241,7 @@ Marks a test function as *expected to fail*. .. py:function:: pytest.mark.xfail(condition=False, *, reason=None, raises=None, run=True, strict=xfail_strict) - :keyword Union[bool, str] condition: + :keyword Union[bool, str] condition: Condition for marking the test function as xfail (``True/False`` or a :ref:`condition string `). If a ``bool``, you also have to specify ``reason`` (see :ref:`condition string `).