MCPcopy Index your code
hub / github.com/python/cpython / test_enable_logging

Method test_enable_logging

Lib/test/_test_multiprocessing.py:5227–5233  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5225 ALLOWED_TYPES = ('processes',)
5226
5227 def test_enable_logging(self):
5228 logger = multiprocessing.get_logger()
5229 logger.setLevel(util.SUBWARNING)
5230 self.assertIsNotNone(logger)
5231 logger.debug('this will not be printed')
5232 logger.info('nor will this')
5233 logger.setLevel(LOG_LEVEL)
5234
5235 @classmethod
5236 def _test_level(cls, conn):

Callers

nothing calls this directly

Calls 5

get_loggerMethod · 0.80
assertIsNotNoneMethod · 0.80
setLevelMethod · 0.45
debugMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected