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

Method test_blocking_put

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

Source from the content-addressed store, hash-verified

177class QueuePutTest(AsyncTestCase):
178 @gen_test
179 def test_blocking_put(self):
180 q = queues.Queue() # type: queues.Queue[int]
181 q.put(0)
182 self.assertEqual(0, q.get_nowait())
183
184 def test_nonblocking_put_exception(self):
185 q = queues.Queue(1) # type: queues.Queue[int]

Callers

nothing calls this directly

Calls 2

putMethod · 0.95
get_nowaitMethod · 0.95

Tested by

no test coverage detected