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

Method tearDown

Lib/test/test_smtplib.py:1581–1590  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1579 self.serv_evt.clear()
1580
1581 def tearDown(self):
1582 socket.getfqdn = self.real_getfqdn
1583 # indicate that the client is finished
1584 self.client_evt.set()
1585 # wait for the server thread to terminate
1586 self.serv_evt.wait()
1587 threading_helper.join_thread(self.thread)
1588 del self.thread
1589 self.doCleanups()
1590 threading_helper.threading_cleanup(*self.thread_key)
1591
1592 def testAUTH_PLAIN_initial_response_login(self):
1593 self.serv.add_feature('AUTH PLAIN')

Callers

nothing calls this directly

Calls 4

join_threadMethod · 0.80
doCleanupsMethod · 0.80
setMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected