summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2014-09-11 22:08:48 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2014-09-11 22:08:48 (GMT)
commita56411e5d4c91027c65780c8bdc81dd943cd9c87 (patch)
tree857772ad8ad05b6c02af990831bfe8b7d581fc9f /Lib/test/test_logging.py
parentee6c3c7162dee452dc42d9a1001bf1a0a1e15f26 (diff)
parentd1d4fbff6335cc638201a5d011b1c93d9d306b6b (diff)
downloadcpython-a56411e5d4c91027c65780c8bdc81dd943cd9c87.zip
cpython-a56411e5d4c91027c65780c8bdc81dd943cd9c87.tar.gz
cpython-a56411e5d4c91027c65780c8bdc81dd943cd9c87.tar.bz2
Closes #22386: merged fix from 3.4.
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 52412d1..070e636 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -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):