

@gen_test
def test_get_timeout_preempted(self):
    q = queues.Queue()
    get = q.get(timeout=timedelta(seconds=0.01))
    q.put(0)
    (yield gen.sleep(0.02))
    self.assertEqual(0, (yield get))

dataset/ETHPy150Open tornadoweb/tornado/tornado/test/queues_test.py QueueGetTest.test_get_timeout_preempted/original