diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2017-01-11 17:41:28 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2017-01-11 17:41:28 (GMT) |
commit | a861d48817e2477cd0b5189787d071ff01dbe4f7 (patch) | |
tree | 89456854592b24448c412518c399a0f9f3bc666d /Lib/test/test_logging.py | |
parent | ced4b90756e58a8ad99f64fb2c7a3e83f49cf017 (diff) | |
parent | 924aaae4c2a99015ca6b448f16eed31bbb598b98 (diff) | |
download | cpython-a861d48817e2477cd0b5189787d071ff01dbe4f7.zip cpython-a861d48817e2477cd0b5189787d071ff01dbe4f7.tar.gz cpython-a861d48817e2477cd0b5189787d071ff01dbe4f7.tar.bz2 |
Issue #292Merged fixes from 3.5.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 079f584..9dedc09 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -313,6 +313,14 @@ class BuiltinLevelsTest(BaseTest): fatal = logging.getLevelName('FATAL') self.assertEqual(fatal, logging.FATAL) + def test_regression_29220(self): + """See issue #29220 for more information.""" + logging.addLevelName(logging.INFO, '') + self.addCleanup(logging.addLevelName, logging.INFO, 'INFO') + self.assertEqual(logging.getLevelName(logging.INFO), '') + self.assertEqual(logging.getLevelName(logging.NOTSET), 'NOTSET') + self.assertEqual(logging.getLevelName('NOTSET'), logging.NOTSET) + class BasicFilterTest(BaseTest): """Test the bundled Filter class.""" |