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

Method tearDown

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

Source from the content-addressed store, hash-verified

4312 self.orig_factory = logging.getLogRecordFactory()
4313
4314 def tearDown(self):
4315 self.root_logger.removeFilter(self.filter)
4316 BaseTest.tearDown(self)
4317 logging.setLogRecordFactory(self.orig_factory)
4318
4319 def test_logrecord_class(self):
4320 self.assertRaises(TypeError, self.root_logger.warning,

Callers

nothing calls this directly

Calls 3

removeFilterMethod · 0.80
setLogRecordFactoryMethod · 0.80
tearDownMethod · 0.45

Tested by

no test coverage detected