diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2019-08-02 16:53:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-02 16:53:00 +0100 |
commit | cb65b3a4f484ce71dcb76a918af98c7015513025 (patch) | |
tree | 7f4e08a9ed98315e4fe5d0651f9344271db928a2 /Lib/test/test_logging.py | |
parent | 854d0a4b98b13629252e21edaf2b785b429e5135 (diff) | |
download | cpython-cb65b3a4f484ce71dcb76a918af98c7015513025.tar.gz cpython-cb65b3a4f484ce71dcb76a918af98c7015513025.zip |
bpo-37742: Return the root logger when logging.getLogger('root') is c… (#15077)
* bpo-37742: Return the root logger when logging.getLogger('root') is called.
* Added type check guard on logger name in logging.getLogger() and refined a test.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 6507d79742a..dca744c5909 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -4856,6 +4856,7 @@ class LoggerTest(BaseTest): self.assertIs(root, logging.root) self.assertIs(root, logging.getLogger(None)) self.assertIs(root, logging.getLogger('')) + self.assertIs(root, logging.getLogger('root')) self.assertIs(root, logging.getLogger('foo').root) self.assertIs(root, logging.getLogger('foo.bar').root) self.assertIs(root, logging.getLogger('foo').parent) |