Commits

Romain Guillebert  committed 2d068c8

Adapt test_proxy_iter.py to Python 3's syntax

  • Participants
  • Parent commits 8507afb
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/objspace/std/test/test_proxy_iter.py

         g = self.get_proxy(some([1,2,3]))
         assert list(g) == [1,2,3]
         g = self.get_proxy(some([1,2,3]))
-        assert g.next() == 1
-        assert g.next() == 2
+        assert next(g) == 1
+        assert next(g) == 2