summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2011-11-07 08:49:16 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2011-11-07 08:49:16 (GMT)
commit74ab3440bad1b97e39fb5adf992e555ba26001d1 (patch)
tree8de7fb33c65b28eb39fd6a760d1207758ed6595d /Lib/test/test_logging.py
parentcaf0272d40f4af95d28797f1ad84b8f641368240 (diff)
downloadcpython-74ab3440bad1b97e39fb5adf992e555ba26001d1.zip
cpython-74ab3440bad1b97e39fb5adf992e555ba26001d1.tar.gz
cpython-74ab3440bad1b97e39fb5adf992e555ba26001d1.tar.bz2
Closes #13661: Check added for type of logger name.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 0760a6a..b2d0a2b 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -272,6 +272,8 @@ class BuiltinLevelsTest(BaseTest):
('INF.BADPARENT', 'INFO', '4'),
])
+ def test_invalid_name(self):
+ self.assertRaises(ValueError, logging.getLogger, any)
class BasicFilterTest(BaseTest):