Code review
This commit is contained in:
parent
3518a62d5b
commit
072bbee6d8
|
@ -262,9 +262,10 @@ Marks a test function as *expected to fail*.
|
||||||
to specify ``reason`` (see :ref:`condition string <string conditions>`).
|
to specify ``reason`` (see :ref:`condition string <string conditions>`).
|
||||||
:keyword str reason:
|
:keyword str reason:
|
||||||
Reason why the test function is marked as xfail.
|
Reason why the test function is marked as xfail.
|
||||||
:keyword Type raises:
|
:keyword raises:
|
||||||
Exception class (or tuple of classes) expected to be raised by the test function; other exceptions will fail the test.
|
Exception class (or tuple of classes) expected to be raised by the test function; other exceptions will fail the test.
|
||||||
Note that subclasses of the classes passed will also result in a match (similar to how the ``except`` statement works).
|
Note that subclasses of the classes passed will also result in a match (similar to how the ``except`` statement works).
|
||||||
|
:type raises: Type[:py:exc:`Exception`]
|
||||||
|
|
||||||
:keyword bool run:
|
:keyword bool run:
|
||||||
Whether the test function should actually be executed. If ``False``, the function will always xfail and will
|
Whether the test function should actually be executed. If ``False``, the function will always xfail and will
|
||||||
|
|
Loading…
Reference in New Issue