MCPcopy
hub / github.com/tornadoweb/tornado / test_asyncio_run

Method test_asyncio_run

tornado/test/asyncio_test.py:184–188  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

182 IOLoop.current()
183
184 def test_asyncio_run(self):
185 for i in range(10):
186 # asyncio.run calls shutdown_asyncgens for us.
187 asyncio.run(self.dummy_tornado_coroutine())
188 self.assert_no_thread_leak()
189
190 def test_asyncio_manual(self):
191 for i in range(10):

Callers

nothing calls this directly

Calls 3

assert_no_thread_leakMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected