mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
#19006: merge with 3.5.
This commit is contained in:
commit
997e6c1dd8
1 changed files with 4 additions and 3 deletions
|
@ -762,8 +762,9 @@ Test cases
|
||||||
|
|
||||||
.. _assert-methods:
|
.. _assert-methods:
|
||||||
|
|
||||||
The :class:`TestCase` class provides a number of methods to check for and
|
The :class:`TestCase` class provides several assert methods to check for and
|
||||||
report failures, such as:
|
report failures. The following table lists the most commonly used methods
|
||||||
|
(see the tables below for more assert methods):
|
||||||
|
|
||||||
+-----------------------------------------+-----------------------------+---------------+
|
+-----------------------------------------+-----------------------------+---------------+
|
||||||
| Method | Checks that | New in |
|
| Method | Checks that | New in |
|
||||||
|
@ -884,7 +885,7 @@ Test cases
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
It is also possible to check the production of exceptions, warnings and
|
It is also possible to check the production of exceptions, warnings, and
|
||||||
log messages using the following methods:
|
log messages using the following methods:
|
||||||
|
|
||||||
+---------------------------------------------------------+--------------------------------------+------------+
|
+---------------------------------------------------------+--------------------------------------+------------+
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue