bpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26… · python/cpython@1e4ca09 (original) (raw)

Original file line number Diff line number Diff line change
@@ -597,8 +597,9 @@ The following decorators and exception implement test skipping and expected fail
597 597 .. decorator:: expectedFailure
598 598
599 599 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.
602 603
603 604 .. exception:: SkipTest(reason)
604 605