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

Method tearDown

Lib/test/test_logging.py:1979–1988  ·  view source on GitHub ↗

Shutdown the UDP server.

(self)

Source from the content-addressed store, hash-verified

1977 self.handled = threading.Event()
1978
1979 def tearDown(self):
1980 """Shutdown the UDP server."""
1981 try:
1982 if self.server:
1983 self.server.stop()
1984 if self.sock_hdlr:
1985 self.root_logger.removeHandler(self.sock_hdlr)
1986 self.sock_hdlr.close()
1987 finally:
1988 BaseTest.tearDown(self)
1989
1990 def handle_datagram(self, request):
1991 slen = struct.pack('>L', 0) # length of prefix

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