summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2014-09-11 22:06:09 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2014-09-11 22:06:09 (GMT)
commitd1d4fbff6335cc638201a5d011b1c93d9d306b6b (patch)
treee828a882c4b1b662a553afdb858782bfc4b60a95 /Lib/test/test_logging.py
parent42d67af87fc2b1d297cce1cd8d762461e009f0a0 (diff)
downloadcpython-d1d4fbff6335cc638201a5d011b1c93d9d306b6b.zip
cpython-d1d4fbff6335cc638201a5d011b1c93d9d306b6b.tar.gz
cpython-d1d4fbff6335cc638201a5d011b1c93d9d306b6b.tar.bz2
Issue #22386: fixed regression.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 6f6dd18..d5aec9a 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -313,6 +313,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):