MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_enable_logging

Method test_enable_logging

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

Source from the content-addressed store, hash-verified

4923 ALLOWED_TYPES = ('processes',)
4924
4925 def test_enable_logging(self):
4926 logger = multiprocessing.get_logger()
4927 logger.setLevel(util.SUBWARNING)
4928 self.assertTrue(logger is not None)
4929 logger.debug('this will not be printed')
4930 logger.info('nor will this')
4931 logger.setLevel(LOG_LEVEL)
4932
4933 @classmethod
4934 def _test_level(cls, conn):

Callers

nothing calls this directly

Calls 5

get_loggerMethod · 0.80
assertTrueMethod · 0.80
setLevelMethod · 0.45
debugMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected