MCPcopy Index your code
hub / github.com/python/cpython / test_blocking_get

Method test_blocking_get

Lib/test/test_asyncio/test_queues.py:122–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120class QueueGetTests(unittest.IsolatedAsyncioTestCase):
121
122 async def test_blocking_get(self):
123 q = asyncio.Queue()
124 q.put_nowait(1)
125
126 self.assertEqual(1, await q.get())
127
128 async def test_get_with_putters(self):
129 loop = asyncio.get_running_loop()

Callers

nothing calls this directly

Calls 4

put_nowaitMethod · 0.95
getMethod · 0.95
QueueMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected