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

Method test_has_handlers_no_propagate

Lib/test/test_logging.py:6218–6221  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6216 self.assertFalse(self.logger.hasHandlers())
6217
6218 def test_has_handlers_no_propagate(self):
6219 child_logger = logging.getLogger('blah.child')
6220 child_logger.propagate = False
6221 self.assertFalse(child_logger.hasHandlers())
6222
6223 def test_is_enabled_for(self):
6224 old_disable = self.logger.manager.disable

Callers

nothing calls this directly

Calls 3

getLoggerMethod · 0.80
assertFalseMethod · 0.80
hasHandlersMethod · 0.45

Tested by

no test coverage detected