From f9967bfd4aad1ab566af507a898c1ae9b97ecae6 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Sun, 4 Oct 2020 14:16:04 +0100 Subject: [PATCH] bpo-41898: add caveat on root logger seeing all messages in assertLogs doc (GH-22526) (cherry picked from commit 1ed54435268b285964141fb74d47ceaa33ea79ab) Co-authored-by: Irit Katriel --- 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 285bb9e8cbe626..8a4fd25322e33f 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -1088,7 +1088,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