]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarify expectedFailure in the unittest docs. (GH-10953)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 6 Dec 2018 21:16:03 +0000 (13:16 -0800)
committerGitHub <noreply@github.com>
Thu, 6 Dec 2018 21:16:03 +0000 (13:16 -0800)
(cherry picked from commit 91f259b478ae8bfb4c73e5b5a767e4bf0ee9257f)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Doc/library/unittest.rst

index fb5bd2b7648e848f16be9fa42f63a7ef5b03c71f..774b0875bbf1cebae3b5ae92686923a6a489b508 100644 (file)
@@ -585,8 +585,8 @@ The following decorators implement test skipping and expected failures:
 
 .. decorator:: expectedFailure
 
-   Mark the test as an expected failure.  If the test fails when run, the test
-   is not counted as a failure.
+   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.
 
 .. exception:: SkipTest(reason)