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

Method test_nonblocking_get

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

Source from the content-addressed store, hash-verified

160 self.assertEqual(1, res)
161
162 def test_nonblocking_get(self):
163 q = asyncio.Queue()
164 q.put_nowait(1)
165 self.assertEqual(1, q.get_nowait())
166
167 def test_nonblocking_get_exception(self):
168 q = asyncio.Queue()

Callers

nothing calls this directly

Calls 4

put_nowaitMethod · 0.95
get_nowaitMethod · 0.95
QueueMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected