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

Method test_shutdown_immediate

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

Source from the content-addressed store, hash-verified

260 q.get()
261
262 def test_shutdown_immediate(self):
263 q = self.type2test()
264 q.put("data")
265 q.shutdown(immediate=True)
266 with self.assertRaises(self.queue.ShutDown):
267 q.get()
268
269 def test_shutdown_allowed_transitions(self):
270 # 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