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