Updated incorrect level-setting code to use setLevel(). (GH-16325)

This commit is contained in:
Vinay Sajip 2019-09-22 03:51:51 +01:00 committed by GitHub
parent b104ecbbaf
commit 1d094af716
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View file

@ -4315,7 +4315,7 @@ class BasicConfigTest(unittest.TestCase):
logging._handlers.clear()
logging._handlers.update(self.saved_handlers)
logging._handlerList[:] = self.saved_handler_list
logging.root.level = self.original_logging_level
logging.root.setLevel(self.original_logging_level)
def test_no_kwargs(self):
logging.basicConfig()