

def test_nonblocking_put_exception(self):
    q = queues.Queue(1)
    q.put(0)
    self.assertRaises(queues.QueueFull, q.put_nowait, 1)

dataset/ETHPy150Open tornadoweb/tornado/tornado/test/queues_test.py QueuePutTest.test_nonblocking_put_exception/original