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

Method tearDown

Lib/test/test_ftplib.py:934–939  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

932 self.client.connect(self.server.host, self.server.port)
933
934 def tearDown(self):
935 self.client.close()
936 self.server.stop()
937 # Explicitly clear the attribute to prevent dangling thread
938 self.server = None
939 asyncore.close_all(ignore_all=True)
940
941 def test_control_connection(self):
942 self.assertNotIsInstance(self.client.sock, ssl.SSLSocket)

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected