]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-10548: expectedFailure does not apply to fixtures (#23201)
authorIrit Katriel <iritkatriel@yahoo.com>
Tue, 11 May 2021 21:48:20 +0000 (22:48 +0100)
committerGitHub <noreply@github.com>
Tue, 11 May 2021 21:48:20 +0000 (22:48 +0100)
Doc/library/unittest.rst

index 0c29408cb192146e7d1e1919736ccf57e44614cd..99c2f6e029448ed42eb3cb5ed8271725e50bf4b0 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)