Skip to content

Commit 1e4ca09

Browse files
bpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26044)
(cherry picked from commit 23ae2c3) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
1 parent 6fc6f43 commit 1e4ca09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/unittest.rst

Lines changed: 3 additions & 2 deletions
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

0 commit comments

Comments
 (0)