mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Issue #292Merged fixes from 3.5.
This commit is contained in:
commit
a861d48817
2 changed files with 16 additions and 3 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue