mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Closes #28524: added default level for logging.disable().
This commit is contained in:
parent
8e9c42e8e8
commit
d489ac9102
3 changed files with 15 additions and 2 deletions
|
@ -3473,6 +3473,11 @@ class ModuleLevelMiscTest(BaseTest):
|
|||
logging.disable(83)
|
||||
self.assertEqual(logging.root.manager.disable, 83)
|
||||
|
||||
# test the default value introduced in 3.7
|
||||
# (Issue #28524)
|
||||
logging.disable()
|
||||
self.assertEqual(logging.root.manager.disable, logging.CRITICAL)
|
||||
|
||||
def _test_log(self, method, level=None):
|
||||
called = []
|
||||
support.patch(self, logging, 'basicConfig',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue