]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38320: Clarify that expectedFailure is satisfied by either failure or error of...
authorIrit Katriel <iritkatriel@yahoo.com>
Mon, 19 Oct 2020 21:27:16 +0000 (22:27 +0100)
committerGitHub <noreply@github.com>
Mon, 19 Oct 2020 21:27:16 +0000 (22:27 +0100)
Doc/library/unittest.rst

index f04ec91270eebe2171f04dd12250f8ac5d1e7f8e..51e10119d3e8d001237e845d933364f584244d77 100644 (file)
@@ -593,8 +593,9 @@ The following decorators and exception implement test skipping and expected fail
 
 .. decorator:: expectedFailure
 
-   Mark the test as an expected failure.  If the test fails it will be
-   considered a success.  If the test passes, it will be considered a failure.
+   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.
 
 .. exception:: SkipTest(reason)
 
@@ -1967,7 +1968,7 @@ Loading and running tests
 
       A list containing 2-tuples of :class:`TestCase` instances and strings
       holding formatted tracebacks.  Each tuple represents an expected failure
-      of the test case.
+      or error of the test case.
 
    .. attribute:: unexpectedSuccesses
 
@@ -2093,8 +2094,8 @@ Loading and running tests
 
    .. method:: addExpectedFailure(test, err)
 
-      Called when the test case *test* fails, but was marked with the
-      :func:`expectedFailure` decorator.
+      Called when the test case *test* fails or errors, but was marked with
+      the :func:`expectedFailure` decorator.
 
       The default implementation appends a tuple ``(test, formatted_err)`` to
       the instance's :attr:`expectedFailures` attribute, where *formatted_err*