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

Method clientTearDown

Lib/test/test_socket.py:6008–6012  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6006 self.source_port = socket_helper.find_unused_port()
6007
6008 def clientTearDown(self):
6009 if self.cli is not None:
6010 self.cli.close()
6011 self.cli = None
6012 ThreadableTest.clientTearDown(self)
6013
6014 def _justAccept(self):
6015 conn, addr = self.serv.accept()

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
clientTearDownMethod · 0.45

Tested by

no test coverage detected