diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2019-09-22 02:51:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-22 02:51:51 (GMT) |
commit | 1d094af716e8ce5e5710e1dfbce7832ba333be55 (patch) | |
tree | 3cb916305b22f835ebff015078237a8b71527265 /Lib/test | |
parent | b104ecbbafc14f9ca0c8371963c45dca893f6b75 (diff) | |
download | cpython-1d094af716e8ce5e5710e1dfbce7832ba333be55.zip cpython-1d094af716e8ce5e5710e1dfbce7832ba333be55.tar.gz cpython-1d094af716e8ce5e5710e1dfbce7832ba333be55.tar.bz2 |
Updated incorrect level-setting code to use setLevel(). (GH-16325)
Diffstat (limited to 'Lib/test')
-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 dca744c..74ccf48 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -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() |