bpo-10548: expectedFailure does not apply to fixtures (#23201) · python/cpython@23ae2c3

Original file line numberDiff line numberDiff line change

@@ -597,8 +597,9 @@ The following decorators and exception implement test skipping and expected fail

597597

.. decorator:: expectedFailure

598598
599599

Mark the test as an expected failure or error. If the test fails or errors

600-

it will be considered a success. If the test passes, it will be considered

601-

a failure.

600+

in the test function itself (rather than in one of the :dfn:`test fixture`

601+

methods) then it will be considered a success. If the test passes, it will

602+

be considered a failure.

602603
603604

.. exception:: SkipTest(reason)

604605