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

Method tearDown

Lib/test/test_asyncio/test_events.py:267–274  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

265 self.set_event_loop(self.loop)
266
267 def tearDown(self):
268 # just in case if we have transport close callbacks
269 if not self.loop.is_closed():
270 test_utils.run_briefly(self.loop)
271
272 self.doCleanups()
273 support.gc_collect()
274 super().tearDown()
275
276 def test_run_until_complete_nesting(self):
277 async def coro1():

Callers 1

tearDownMethod · 0.45

Calls 4

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

Tested by

no test coverage detected