mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Updated incorrect level-setting code to use setLevel(). (GH-16325)
This commit is contained in:
parent
b104ecbbaf
commit
1d094af716
2 changed files with 7 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue