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

Method tearDown

Lib/test/test_logging.py:2073–2082  ·  view source on GitHub ↗

Shutdown the server.

(self)

Source from the content-addressed store, hash-verified

2071 self.handled = threading.Event()
2072
2073 def tearDown(self):
2074 """Shutdown the server."""
2075 try:
2076 if self.server:
2077 self.server.stop()
2078 if self.sl_hdlr:
2079 self.root_logger.removeHandler(self.sl_hdlr)
2080 self.sl_hdlr.close()
2081 finally:
2082 BaseTest.tearDown(self)
2083
2084 def handle_datagram(self, request):
2085 self.log_output = request.packet

Callers

nothing calls this directly

Calls 4

removeHandlerMethod · 0.80
stopMethod · 0.45
closeMethod · 0.45
tearDownMethod · 0.45

Tested by

no test coverage detected