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

Method test_tornado

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

Source from the content-addressed store, hash-verified

197 self.assert_no_thread_leak()
198
199 def test_tornado(self):
200 for i in range(10):
201 # The IOLoop interfaces are aware of the selector thread and
202 # (synchronously) shut it down.
203 loop = IOLoop(make_current=False)
204 loop.run_sync(self.dummy_tornado_coroutine)
205 loop.close()
206 self.assert_no_thread_leak()
207
208
209class AnyThreadEventLoopPolicyTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 4

run_syncMethod · 0.95
closeMethod · 0.95
assert_no_thread_leakMethod · 0.95
IOLoopClass · 0.90

Tested by

no test coverage detected