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

Method test_shutdown_empty

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

Source from the content-addressed store, hash-verified

244 q.put_nowait(4)
245
246 def test_shutdown_empty(self):
247 q = self.type2test()
248 q.shutdown()
249 with self.assertRaises(self.queue.ShutDown):
250 q.put("data")
251 with self.assertRaises(self.queue.ShutDown):
252 q.get()
253
254 def test_shutdown_nonempty(self):
255 q = self.type2test()

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected