Skip to content

Commit f913d44

Browse files
Clarify expectedFailure in the unittest docs. (GH-10953)
(cherry picked from commit 91f259b) Co-authored-by: Gregory P. Smith <greg@krypto.org>
1 parent 6485aa6 commit f913d44

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/unittest.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,8 @@ The following decorators implement test skipping and expected failures:
585585

586586
.. decorator:: expectedFailure
587587

588-
Mark the test as an expected failure. If the test fails when run, the test
589-
is not counted as a failure.
588+
Mark the test as an expected failure. If the test fails it will be
589+
considered a success. If the test passes, it will be considered a failure.
590590

591591
.. exception:: SkipTest(reason)
592592

0 commit comments

Comments
 (0)