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

Method tearDown

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

Source from the content-addressed store, hash-verified

1451 self.serv_evt.clear()
1452
1453 def tearDown(self):
1454 socket.getfqdn = self.real_getfqdn
1455 # indicate that the client is finished
1456 self.client_evt.set()
1457 # wait for the server thread to terminate
1458 self.serv_evt.wait()
1459 threading_helper.join_thread(self.thread)
1460 del self.thread
1461 self.doCleanups()
1462 threading_helper.threading_cleanup(*self.thread_key)
1463
1464 def test_test_server_supports_extensions(self):
1465 smtp = smtplib.SMTP(

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