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

Method tearDown

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

Source from the content-addressed store, hash-verified

5484 logging.root.handlers = []
5485
5486 def tearDown(self):
5487 for h in logging.root.handlers[:]:
5488 logging.root.removeHandler(h)
5489 h.close()
5490 super(BasicConfigTest, self).tearDown()
5491
5492 def cleanup(self):
5493 setattr(logging.root, 'handlers', self.handlers)

Callers

nothing calls this directly

Calls 4

superClass · 0.85
removeHandlerMethod · 0.80
closeMethod · 0.45
tearDownMethod · 0.45

Tested by

no test coverage detected