[pypy-commit] pypy py3k: Adapt test_proxy_iter.py to Python 3's syntax
rguillebert
noreply at buildbot.pypy.org
Sun Aug 12 00:03:32 CEST 2012
Author: Romain Guillebert <romain.py at gmail.com>
Branch: py3k
Changeset: r56709:2d068c87d468
Date: 2012-08-11 23:58 +0200
http://bitbucket.org/pypy/pypy/changeset/2d068c87d468/
Log: Adapt test_proxy_iter.py to Python 3's syntax
diff --git a/pypy/objspace/std/test/test_proxy_iter.py b/pypy/objspace/std/test/test_proxy_iter.py
--- a/pypy/objspace/std/test/test_proxy_iter.py
+++ b/pypy/objspace/std/test/test_proxy_iter.py
@@ -13,5 +13,5 @@
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
More information about the pypy-commit
mailing list