]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26045)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 May 2021 22:23:54 +0000 (15:23 -0700)
committerGitHub <noreply@github.com>
Tue, 11 May 2021 22:23:54 +0000 (23:23 +0100)
(cherry picked from commit 23ae2c3bacc167f7bbfea1846bbbc9dde63a1bfd)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
Doc/library/unittest.rst

index 9541997e3ccca0c31372f62dc8007dcca7c47d21..392cd2473155fedb280d5beb554cda6550585b17 100644 (file)
@@ -597,8 +597,9 @@ The following decorators and exception implement test skipping and expected fail
 .. decorator:: expectedFailure
 
    Mark the test as an expected failure or error.  If the test fails or errors
-   it will be considered a success.  If the test passes, it will be considered
-   a failure.
+   in the test function itself (rather than in one of the :dfn:`test fixture`
+   methods) then it will be considered a success.  If the test passes, it will
+   be considered a failure.
 
 .. exception:: SkipTest(reason)