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

Method test_shutdown_allowed_transitions

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

Source from the content-addressed store, hash-verified

267 q.get()
268
269 def test_shutdown_allowed_transitions(self):
270 # allowed transitions would be from alive via shutdown to immediate
271 q = self.type2test()
272 self.assertFalse(q.is_shutdown)
273
274 q.shutdown()
275 self.assertTrue(q.is_shutdown)
276
277 q.shutdown(immediate=True)
278 self.assertTrue(q.is_shutdown)
279
280 q.shutdown(immediate=False)
281
282 def _shutdown_all_methods_in_one_thread(self, immediate):
283 q = self.type2test(2)

Callers

nothing calls this directly

Calls 4

type2testMethod · 0.80
assertFalseMethod · 0.80
assertTrueMethod · 0.80
shutdownMethod · 0.45

Tested by

no test coverage detected