[Python-checkins] Clarify expectedFailure in the unittest docs. (#10953)
Gregory P. Smith
webhook-mailer at python.org
Thu Dec 6 15:56:28 EST 2018
https://github.com/python/cpython/commit/91f259b478ae8bfb4c73e5b5a767e4bf0ee9257f
commit: 91f259b478ae8bfb4c73e5b5a767e4bf0ee9257f
branch: master
author: Gregory P. Smith <greg at krypto.org>
committer: GitHub <noreply at github.com>
date: 2018-12-06T12:56:24-08:00
summary:
Clarify expectedFailure in the unittest docs. (#10953)
files:
M Doc/library/unittest.rst
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 8afbee642620..acf9b49548b3 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -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)
More information about the Python-checkins
mailing list