[Python-checkins] bpo-41898: add caveat on root logger seeing all messages in assertLogs doc (GH-22526)

Irit Katriel webhook-mailer at python.org
Sun Oct 4 09:16:17 EDT 2020


https://github.com/python/cpython/commit/1ed54435268b285964141fb74d47ceaa33ea79ab
commit: 1ed54435268b285964141fb74d47ceaa33ea79ab
branch: master
author: Irit Katriel <iritkatriel at yahoo.com>
committer: GitHub <noreply at github.com>
date: 2020-10-04T14:16:04+01:00
summary:

bpo-41898: add caveat on root logger seeing all messages in assertLogs doc (GH-22526)

files:
M Doc/library/unittest.rst

diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index a52df9ee01578..f04ec91270eeb 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -1091,7 +1091,8 @@ Test cases
 
       If given, *logger* should be a :class:`logging.Logger` object or a
       :class:`str` giving the name of a logger.  The default is the root
-      logger, which will catch all messages.
+      logger, which will catch all messages that were not blocked by a
+      non-propagating descendent logger.
 
       If given, *level* should be either a numeric logging level or
       its string equivalent (for example either ``"ERROR"`` or



More information about the Python-checkins mailing list