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

Method tearDown

Lib/test/test_logging.py:1873–1882  ·  view source on GitHub ↗

Shutdown the TCP server.

(self)

Source from the content-addressed store, hash-verified

1871 self.handled = threading.Semaphore(0)
1872
1873 def tearDown(self):
1874 """Shutdown the TCP server."""
1875 try:
1876 if self.sock_hdlr:
1877 self.root_logger.removeHandler(self.sock_hdlr)
1878 self.sock_hdlr.close()
1879 if self.server:
1880 self.server.stop()
1881 finally:
1882 BaseTest.tearDown(self)
1883
1884 def handle_socket(self, request):
1885 conn = request.connection

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected