Closes #22386: merged fix from 3.4.

This commit is contained in:
Vinay Sajip 2014-09-11 23:08:48 +01:00
commit a56411e5d4
3 changed files with 8 additions and 3 deletions

View file

@ -307,6 +307,10 @@ class BuiltinLevelsTest(BaseTest):
('INF.BADPARENT', 'INFO', '4'),
])
def test_regression_22386(self):
"""See issue #22386 for more information."""
self.assertEqual(logging.getLevelName('INFO'), logging.INFO)
self.assertEqual(logging.getLevelName(logging.INFO), 'INFO')
class BasicFilterTest(BaseTest):