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

Method test_order

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

Source from the content-addressed store, hash-verified

81 self.assertTrue(q.full())
82
83 async def test_order(self):
84 q = asyncio.Queue()
85 for i in [1, 3, 2]:
86 await q.put(i)
87
88 items = [await q.get() for _ in range(3)]
89 self.assertEqual([1, 3, 2], items)
90
91 async def test_maxsize(self):
92 q = asyncio.Queue(maxsize=2)

Callers

nothing calls this directly

Calls 4

putMethod · 0.95
getMethod · 0.95
QueueMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected