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

Method test_blocking_get

tornado/test/queues_test.py:78–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76class QueueGetTest(AsyncTestCase):
77 @gen_test
78 def test_blocking_get(self):
79 q = queues.Queue() # type: queues.Queue[int]
80 q.put_nowait(0)
81 self.assertEqual(0, (yield q.get()))
82
83 def test_nonblocking_get(self):
84 q = queues.Queue() # type: queues.Queue[int]

Callers

nothing calls this directly

Calls 2

put_nowaitMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected