]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
Fix all the tests in python 3
authorIvan Malison <imalison@uber.com>
Thu, 30 Jul 2015 10:39:04 +0000 (03:39 -0700)
committerIvan Malison <imalison@uber.com>
Thu, 30 Jul 2015 10:39:04 +0000 (03:39 -0700)
tests/unit/test_cassettes.py

index 00916fbb390c6b87810d2cabc3ba0d4bc89e4fd7..59c5fb483dcc359886790b9ee98fd15fbb05e720 100644 (file)
@@ -268,7 +268,7 @@ def test_use_as_decorator_on_coroutine():
         value = yield 2
         assert value == 2
     coroutine = test_function()
-    value = coroutine.next()
+    value = next(coroutine)
     while True:
         try:
             value = coroutine.send(value)