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

Method tearDown

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

Source from the content-addressed store, hash-verified

1053 self.serv_evt.clear()
1054
1055 def tearDown(self):
1056 socket.getfqdn = self.real_getfqdn
1057 # indicate that the client is finished
1058 self.client_evt.set()
1059 # wait for the server thread to terminate
1060 self.serv_evt.wait()
1061 threading_helper.join_thread(self.thread)
1062 del self.thread
1063 self.doCleanups()
1064 threading_helper.threading_cleanup(*self.thread_key)
1065
1066 def testBasic(self):
1067 # smoke test

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