Skip to content

Commit 23ae2c3

Browse files
authored
bpo-10548: expectedFailure does not apply to fixtures (python#23201)
1 parent 5f2eb87 commit 23ae2c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/unittest.rst

+3-2
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)