diff --git a/tests/unit/context_test.py b/tests/unit/context_test.py
index <HASH>..<HASH> 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
Use .next() in contextdict test for py3 (#<I>)