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

Method test_set_log_record_factory

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

Source from the content-addressed store, hash-verified

4252 self.assertEqual(logged, ['should appear in logged'])
4253
4254 def test_set_log_record_factory(self):
4255 man = logging.Manager(None)
4256 expected = object()
4257 man.setLogRecordFactory(expected)
4258 self.assertEqual(man.logRecordFactory, expected)
4259
4260class ChildLoggerTest(BaseTest):
4261 def test_child_loggers(self):

Callers

nothing calls this directly

Calls 3

setLogRecordFactoryMethod · 0.95
ManagerMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected