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

Method test_empty

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

Source from the content-addressed store, hash-verified

65 self.assertIsInstance(q, GenericAlias)
66
67 async def test_empty(self):
68 q = asyncio.Queue()
69 self.assertTrue(q.empty())
70 await q.put(1)
71 self.assertFalse(q.empty())
72 self.assertEqual(1, await q.get())
73 self.assertTrue(q.empty())
74
75 async def test_full(self):
76 q = asyncio.Queue()

Callers

nothing calls this directly

Calls 7

emptyMethod · 0.95
putMethod · 0.95
getMethod · 0.95
QueueMethod · 0.80
assertTrueMethod · 0.80
assertFalseMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected