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

Method tearDown

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

Source from the content-addressed store, hash-verified

499 self.client.connect(self.server.host, self.server.port)
500
501 def tearDown(self):
502 self.client.close()
503 self.server.stop()
504 # Explicitly clear the attribute to prevent dangling thread
505 self.server = None
506 asyncore.close_all(ignore_all=True)
507
508 def check_data(self, received, expected):
509 self.assertEqual(len(received), len(expected))

Callers 1

test_encoding_paramMethod · 0.95

Calls 2

closeMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected