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

Method tearDown

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

Source from the content-addressed store, hash-verified

871 self.client.connect(self.server.host, self.server.port)
872
873 def tearDown(self):
874 self.client.close()
875 self.server.stop()
876 # Explicitly clear the attribute to prevent dangling thread
877 self.server = None
878 asyncore.close_all(ignore_all=True)
879
880 def test_af(self):
881 self.assertEqual(self.client.af, socket.AF_INET6)

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected