mirror of
https://github.com/python/cpython.git
synced 2025-11-28 22:18:54 +00:00
Address Terry's comments
This commit is contained in:
parent
04d4d6a3aa
commit
7c89ae206e
1 changed files with 5 additions and 2 deletions
|
|
@ -883,8 +883,8 @@ Test cases
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
It is also possible to check that exceptions and warnings are raised using
|
It is also possible to check the production of exceptions, warnings and
|
||||||
the following methods:
|
log messages using the following methods:
|
||||||
|
|
||||||
+---------------------------------------------------------+--------------------------------------+------------+
|
+---------------------------------------------------------+--------------------------------------+------------+
|
||||||
| Method | Checks that | New in |
|
| Method | Checks that | New in |
|
||||||
|
|
@ -901,6 +901,9 @@ Test cases
|
||||||
| :meth:`assertWarnsRegex(warn, r, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *warn* | 3.2 |
|
| :meth:`assertWarnsRegex(warn, r, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *warn* | 3.2 |
|
||||||
| <TestCase.assertWarnsRegex>` | and the message matches regex *r* | |
|
| <TestCase.assertWarnsRegex>` | and the message matches regex *r* | |
|
||||||
+---------------------------------------------------------+--------------------------------------+------------+
|
+---------------------------------------------------------+--------------------------------------+------------+
|
||||||
|
| :meth:`assertLogs(logger, level)` | The ``with`` block logs on *logger* | 3.4 |
|
||||||
|
| <TestCase.assertWarns>` | with minimum *level* | |
|
||||||
|
+---------------------------------------------------------+--------------------------------------+------------+
|
||||||
|
|
||||||
.. method:: assertRaises(exception, callable, *args, **kwds)
|
.. method:: assertRaises(exception, callable, *args, **kwds)
|
||||||
assertRaises(exception, msg=None)
|
assertRaises(exception, msg=None)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue