[pypy-commit] pypy py3k: prefer builtins.next
pjenvey
noreply at buildbot.pypy.org
Sat Mar 17 06:29:31 CET 2012
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r53749:99e58df43903
Date: 2012-03-16 22:27 -0700
http://bitbucket.org/pypy/pypy/changeset/99e58df43903/
Log: prefer builtins.next
diff --git a/pypy/module/_continuation/test/test_generator.py b/pypy/module/_continuation/test/test_generator.py
--- a/pypy/module/_continuation/test/test_generator.py
+++ b/pypy/module/_continuation/test/test_generator.py
@@ -22,7 +22,7 @@
assert res == 24
res = next(g)
assert res == 13
- raises(StopIteration, g.__next__)
+ raises(StopIteration, next, g)
def test_iterator(self):
from _continuation import generator
@@ -67,4 +67,4 @@
g = f(10)
res = next(g)
assert res == 11
- raises(TypeError, g.__next__)
+ raises(TypeError, next, g)
More information about the pypy-commit
mailing list