MCPcopy
hub / github.com/tornadoweb/tornado / test_nonblocking_put_exception

Method test_nonblocking_put_exception

tornado/test/queues_test.py:184–187  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

182 self.assertEqual(0, q.get_nowait())
183
184 def test_nonblocking_put_exception(self):
185 q = queues.Queue(1) # type: queues.Queue[int]
186 q.put(0)
187 self.assertRaises(queues.QueueFull, q.put_nowait, 1)
188
189 @gen_test
190 def test_put_with_getters(self):

Callers

nothing calls this directly

Calls 1

putMethod · 0.95

Tested by

no test coverage detected