summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.rst
diff options
context:
space:
mode:
authorIrit Katriel <iritkatriel@yahoo.com>2021-05-11 21:48:20 (GMT)
committerGitHub <noreply@github.com>2021-05-11 21:48:20 (GMT)
commit23ae2c3bacc167f7bbfea1846bbbc9dde63a1bfd (patch)
treebab8f482de8b5653984dc2aaf17846d2c5b7284c /Doc/library/unittest.rst
parent5f2eb87f2893c5e77ade4d662cebcce59d3f2c2f (diff)
downloadcpython-23ae2c3bacc167f7bbfea1846bbbc9dde63a1bfd.zip
cpython-23ae2c3bacc167f7bbfea1846bbbc9dde63a1bfd.tar.gz
cpython-23ae2c3bacc167f7bbfea1846bbbc9dde63a1bfd.tar.bz2
bpo-10548: expectedFailure does not apply to fixtures (#23201)
Diffstat (limited to 'Doc/library/unittest.rst')
-rw-r--r--Doc/library/unittest.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 0c29408..99c2f6e 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)