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

Method setUp

python/python3/tornado/test/asyncio_test.py:113–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111
112class LeakTest(unittest.TestCase):
113 def setUp(self):
114 # Trigger a cleanup of the mapping so we start with a clean slate.
115 AsyncIOLoop(make_current=False).close()
116 # If we don't clean up after ourselves other tests may fail on
117 # py34.
118 self.orig_policy = asyncio.get_event_loop_policy()
119 asyncio.set_event_loop_policy(asyncio.DefaultEventLoopPolicy())
120
121 def tearDown(self):
122 asyncio.get_event_loop_policy().get_event_loop().close()

Callers

nothing calls this directly

Calls 2

AsyncIOLoopClass · 0.90
closeMethod · 0.45

Tested by

no test coverage detected