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

Method test_shutdown_immediate

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

Source from the content-addressed store, hash-verified

258 q.get()
259
260 def test_shutdown_immediate(self):
261 q = self.type2test()
262 q.put("data")
263 q.shutdown(immediate=True)
264 with self.assertRaises(self.queue.ShutDown):
265 q.get()
266
267 def test_shutdown_allowed_transitions(self):
268 # allowed transitions would be from alive via shutdown to immediate

Callers

nothing calls this directly

Calls 5

type2testMethod · 0.80
putMethod · 0.45
shutdownMethod · 0.45
assertRaisesMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected