From 7aad06cefd25bb0fa3bd26108f6e0748184867a4 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Sun, 8 Nov 2020 20:20:05 +0000 Subject: [PATCH] bpo-10548: expectedFailure does not apply to fixtures --- Doc/library/unittest.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 51e10119d3e8d00..6cb04717c148d4a 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -594,8 +594,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)