MCPcopy Create free account
hub / github.com/EasyIME/PIME / tearDown

Method tearDown

python/python3/tornado/test/testing_test.py:358–363  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

356 super().setUp()
357
358 def tearDown(self):
359 super().tearDown()
360 # AsyncTestCase must not affect the existing asyncio loop.
361 self.assertFalse(asyncio.get_event_loop().is_closed())
362 asyncio.set_event_loop(self.orig_loop)
363 self.new_loop.close()
364
365 def test_loop(self):
366 self.assertIs(self.io_loop.asyncio_loop, self.new_loop) # type: ignore

Callers

nothing calls this directly

Calls 3

get_event_loopMethod · 0.80
tearDownMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected