diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-11-07 08:53:03 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-11-07 08:53:03 (GMT) |
commit | 61b787e6dd00b1e6e24a12e2d5aa6e9fd1352663 (patch) | |
tree | 981feaa3df0b277dedf87a46144ae6d149c52d13 /Lib/test | |
parent | ebfaabd66373941e69a0b29589645857e0a6ccfc (diff) | |
download | cpython-61b787e6dd00b1e6e24a12e2d5aa6e9fd1352663.zip cpython-61b787e6dd00b1e6e24a12e2d5aa6e9fd1352663.tar.gz cpython-61b787e6dd00b1e6e24a12e2d5aa6e9fd1352663.tar.bz2 |
Closes #13661: Check added for type of logger name.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_logging.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 90d293e..a022680 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -293,6 +293,8 @@ class BuiltinLevelsTest(BaseTest): ('INF.BADPARENT', 'INFO', '4'), ]) + def test_invalid_name(self): + self.assertRaises(ValueError, logging.getLogger, any) class BasicFilterTest(BaseTest): |