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

Method test_nonblocking_put

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

Source from the content-addressed store, hash-verified

244 self.assertTrue(finished)
245
246 def test_nonblocking_put(self):
247 q = asyncio.Queue()
248 q.put_nowait(1)
249 self.assertEqual(1, q.get_nowait())
250
251 async def test_get_cancel_drop_one_pending_reader(self):
252 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