mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
bpo-39385: Add an assertNoLogs context manager to unittest.TestCase (GH-18067)
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
This commit is contained in:
parent
5d5c84ef78
commit
6b34d7b51e
5 changed files with 131 additions and 8 deletions
|
|
@ -0,0 +1,3 @@
|
|||
A new test assertion context-manager, :func:`unittest.assertNoLogs` will
|
||||
ensure a given block of code emits no log messages using the logging module.
|
||||
Contributed by Kit Yan Choi.
|
||||
Loading…
Add table
Add a link
Reference in a new issue