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

Method test_nonblocking_get

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

Source from the content-addressed store, hash-verified

81 self.assertEqual(0, (yield q.get()))
82
83 def test_nonblocking_get(self):
84 q = queues.Queue() # type: queues.Queue[int]
85 q.put_nowait(0)
86 self.assertEqual(0, q.get_nowait())
87
88 def test_nonblocking_get_exception(self):
89 q = queues.Queue() # type: queues.Queue[int]

Callers

nothing calls this directly

Calls 2

put_nowaitMethod · 0.95
get_nowaitMethod · 0.95

Tested by

no test coverage detected