Author: Manuel Jacob <m...@manueljacob.de> Branch: py3k Changeset: r82047:fbb1c9fd86c0 Date: 2016-02-02 19:17 +0100 http://bitbucket.org/pypy/pypy/changeset/fbb1c9fd86c0/
Log: 2to3 diff --git a/pypy/module/itertools/test/test_itertools.py b/pypy/module/itertools/test/test_itertools.py --- a/pypy/module/itertools/test/test_itertools.py +++ b/pypy/module/itertools/test/test_itertools.py @@ -201,8 +201,8 @@ # CPython implementation allows floats it = itertools.islice([1, 2, 3, 4, 5], 0.0, 3.0, 2.0) for x in [1, 3]: - assert it.next() == x - raises(StopIteration, it.next) + assert next(it) == x + raises(StopIteration, next, it) it = itertools.islice([1, 2, 3], 0, None) for x in [1, 2, 3]: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit