From: Irit Katriel Date: Tue, 11 May 2021 21:48:20 +0000 (+0100) Subject: bpo-10548: expectedFailure does not apply to fixtures (#23201) X-Git-Tag: v3.11.0a1~1158 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23ae2c3bacc167f7bbfea1846bbbc9dde63a1bfd;p=thirdparty%2FPython%2Fcpython.git bpo-10548: expectedFailure does not apply to fixtures (#23201) --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 0c29408cb192..99c2f6e02944 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -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)