diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-11-07 10:13:18 +0000 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-11-07 10:13:18 +0000 |
commit | 53703d9d72c4b48a8c602209c4e4aba15f48d238 (patch) | |
tree | f57245020fbd9c96a3f2f6d1a8090782323df88f /Lib/test/test_logging.py | |
parent | 74ab3440bad1b97e39fb5adf992e555ba26001d1 (diff) | |
download | cpython-git-53703d9d72c4b48a8c602209c4e4aba15f48d238.tar.gz |
Closes #13361: Raise correct exception type.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index b2d0a2bda6..2aac3603dc 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -273,7 +273,7 @@ class BuiltinLevelsTest(BaseTest): ]) def test_invalid_name(self): - self.assertRaises(ValueError, logging.getLogger, any) + self.assertRaises(TypeError, logging.getLogger, any) class BasicFilterTest(BaseTest): |