MCPcopy Create free account
hub / github.com/python/cpython / tearDown

Method tearDown

Lib/test/test_asyncio/test_sock_lowlevel.py:70–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 super().setUp()
69
70 def tearDown(self):
71 # just in case if we have transport close callbacks
72 if not self.loop.is_closed():
73 test_utils.run_briefly(self.loop)
74
75 self.doCleanups()
76 support.gc_collect()
77 super().tearDown()
78
79 def _basetest_sock_client_ops(self, httpd, sock):
80 if not isinstance(self.loop, proactor_events.BaseProactorEventLoop):

Callers

nothing calls this directly

Calls 4

superClass · 0.85
run_brieflyMethod · 0.80
doCleanupsMethod · 0.80
is_closedMethod · 0.45

Tested by

no test coverage detected