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

Method test_shutdown_empty

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

Source from the content-addressed store, hash-verified

242 q.put_nowait(4)
243
244 def test_shutdown_empty(self):
245 q = self.type2test()
246 q.shutdown()
247 with self.assertRaises(self.queue.ShutDown):
248 q.put("data")
249 with self.assertRaises(self.queue.ShutDown):
250 q.get()
251
252 def test_shutdown_nonempty(self):
253 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