

@gen_test
def test_nonblocking_put_with_getters(self):
    q = queues.Queue()
    get0 = q.get()
    get1 = get0.get()
    q.put_nowait(0)
    (yield gen.moment)
    self.assertEqual(0, (yield get0))
    q.put_nowait(1)
    (yield gen.moment)
    self.assertEqual(1, (yield get1))

dataset/ETHPy150Open tornadoweb/tornado/tornado/test/queues_test.py QueuePutTest.test_nonblocking_put_with_getters/VarMisuse@31/42 `q`->`get0`