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

Method tearDown

Lib/test/test_asyncio/test_sendfile.py:124–131  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 super().setUp()
123
124 def tearDown(self):
125 # just in case if we have transport close callbacks
126 if not self.loop.is_closed():
127 test_utils.run_briefly(self.loop)
128
129 self.doCleanups()
130 support.gc_collect()
131 super().tearDown()
132
133 def run_loop(self, coro):
134 return self.loop.run_until_complete(coro)

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