Closes #13361: Raise correct exception type.
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index b2d0a2b..2aac360 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -273,7 +273,7 @@
         ])
 
     def test_invalid_name(self):
-        self.assertRaises(ValueError, logging.getLogger, any)
+        self.assertRaises(TypeError, logging.getLogger, any)
 
 class BasicFilterTest(BaseTest):