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

Method tearDown

Lib/test/test_logging.py:2059–2068  ·  view source on GitHub ↗

Shutdown the server.

(self)

Source from the content-addressed store, hash-verified

2057 self.handled = threading.Event()
2058
2059 def tearDown(self):
2060 """Shutdown the server."""
2061 try:
2062 if self.server:
2063 self.server.stop()
2064 if self.sl_hdlr:
2065 self.root_logger.removeHandler(self.sl_hdlr)
2066 self.sl_hdlr.close()
2067 finally:
2068 BaseTest.tearDown(self)
2069
2070 def handle_datagram(self, request):
2071 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