From 8f714138eb748909ac032c3cfce9d9a2faf22602 Mon Sep 17 00:00:00 2001 From: Mike Place Date: Mon, 20 Jun 2016 16:32:34 -0700 Subject: [PATCH] Use .next() in contextdict test for py3 (#34106) --- tests/unit/context_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/context_test.py b/tests/unit/context_test.py index 87afa9090d..7abedceac7 100644 --- a/tests/unit/context_test.py +++ b/tests/unit/context_test.py @@ -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