MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_nowait

Method test_nowait

Lib/test/test_queue.py:219–229  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

217 q.get(1, timeout=-1)
218
219 def test_nowait(self):
220 q = self.type2test(QUEUE_SIZE)
221 for i in range(QUEUE_SIZE):
222 q.put_nowait(1)
223 with self.assertRaises(self.queue.Full):
224 q.put_nowait(1)
225
226 for i in range(QUEUE_SIZE):
227 q.get_nowait()
228 with self.assertRaises(self.queue.Empty):
229 q.get_nowait()
230
231 def test_shrinking_queue(self):
232 # issue 10110

Callers

nothing calls this directly

Calls 4

type2testMethod · 0.80
put_nowaitMethod · 0.45
assertRaisesMethod · 0.45
get_nowaitMethod · 0.45

Tested by

no test coverage detected