(self)
| 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 |
nothing calls this directly
no test coverage detected