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

Method tearDown

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

Source from the content-addressed store, hash-verified

5394 logging.root.handlers = []
5395
5396 def tearDown(self):
5397 for h in logging.root.handlers[:]:
5398 logging.root.removeHandler(h)
5399 h.close()
5400 super(BasicConfigTest, self).tearDown()
5401
5402 def cleanup(self):
5403 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