[Python-checkins] bpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26045)
iritkatriel
webhook-mailer at python.org
Tue May 11 18:23:59 EDT 2021
https://github.com/python/cpython/commit/c9049cf0aa9917abfd51b27e4258c395c5f66ff4
commit: c9049cf0aa9917abfd51b27e4258c395c5f66ff4
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: iritkatriel <iritkatriel at yahoo.com>
date: 2021-05-11T23:23:54+01:00
summary:
bpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26045)
(cherry picked from commit 23ae2c3bacc167f7bbfea1846bbbc9dde63a1bfd)
Co-authored-by: Irit Katriel <iritkatriel at yahoo.com>
files:
M Doc/library/unittest.rst
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 9541997e3ccca..392cd2473155f 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)
More information about the Python-checkins
mailing list