From bb5381de1e09abf9b8aa78897e5ede015523c971 Mon Sep 17 00:00:00 2001 From: iritkatriel Date: Sat, 3 Oct 2020 17:40:27 +0100 Subject: [PATCH] bpo-41898: add caveat on root logger seeing all messages in assertLogs doc --- Doc/library/unittest.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index a52df9ee01578c..f04ec91270eebe 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