summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2016-12-31 11:40:11 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2016-12-31 11:40:11 (GMT)
commitd489ac91020efcf7b76a9fed0a44891c334ba67e (patch)
treea0cbc56f0d2f317d39c9182d2e6f94a3ce91e7bb /Lib/test/test_logging.py
parent8e9c42e8e827fd4212639671faec9cf4ff62b6e9 (diff)
downloadcpython-d489ac91020efcf7b76a9fed0a44891c334ba67e.zip
cpython-d489ac91020efcf7b76a9fed0a44891c334ba67e.tar.gz
cpython-d489ac91020efcf7b76a9fed0a44891c334ba67e.tar.bz2
Closes #28524: added default level for logging.disable().
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 08cdd7f..7c5d1fd 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -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',