Commits

Vinay Sajip committed fb73fe5 Merge

Closes #13361: Merge fix from 3.2.

  • Participants
  • Parent commits 8c719e1, bc05c11

Comments (0)

Files changed (2)

Lib/logging/__init__.py

         """
         rv = None
         if not isinstance(name, str):
-            raise ValueError('A logger name must be a string')
+            raise TypeError('A logger name must be a string')
         _acquireLock()
         try:
             if name in self.loggerDict:

Lib/test/test_logging.py

         ])
 
     def test_invalid_name(self):
-        self.assertRaises(ValueError, logging.getLogger, any)
+        self.assertRaises(TypeError, logging.getLogger, any)
 
 class BasicFilterTest(BaseTest):