Use .next() in contextdict test for py3 (#34106)

This commit is contained in:
Mike Place 2016-06-20 16:32:34 -07:00 committed by Nicole Thomas
parent 39cd302686
commit 8f714138eb

View File

@ -104,7 +104,7 @@ class ContextDictTests(AsyncTestCase):
wait_iterator = tornado.gen.WaitIterator(*futures)
while not wait_iterator.done():
r = yield next(wait_iterator)
r = yield wait_iterator.next()
self.assertEqual(r[0], r[1]) # verify that the global value remails
self.assertEqual(r[2], r[3]) # verify that the override sticks locally
self.assertEqual(r[3], r[4]) # verify that the override sticks across coroutines