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

Method test_async_handler

tornado/test/circlerefs_test.py:185–191  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

183 asyncio.run(self.run_handler(Handler))
184
185 def test_async_handler(self):
186 class Handler(web.RequestHandler):
187 async def get(self):
188 await asyncio.sleep(0.01)
189 self.write("ok\n")
190
191 asyncio.run(self.run_handler(Handler))
192
193 def test_run_on_executor(self):
194 # From https://github.com/tornadoweb/tornado/issues/2620

Callers

nothing calls this directly

Calls 2

run_handlerMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected