Author: Philip Jenvey <pjen...@underboss.org> Branch: py3k Changeset: r87685:e0d72435262a Date: 2016-10-09 19:59 -0700 http://bitbucket.org/pypy/pypy/changeset/e0d72435262a/
Log: merge default diff --git a/pypy/interpreter/test/test_zzpickle_and_slow.py b/pypy/interpreter/test/test_zzpickle_and_slow.py --- a/pypy/interpreter/test/test_zzpickle_and_slow.py +++ b/pypy/interpreter/test/test_zzpickle_and_slow.py @@ -391,10 +391,10 @@ def test_pickle_reversesequenceiter_stopped(self): import pickle iter = reversed([]) - raises(StopIteration, iter.next) + raises(StopIteration, next, iter) pckl = pickle.dumps(iter) result = pickle.loads(pckl) - raises(StopIteration, result.next) + raises(StopIteration, next, result) # This test used to be marked xfail and it tried to test for the past # support of pickling dictiter objects. @@ -428,10 +428,10 @@ raise IndexError for it in (), IE(): iter = reversed(it) - raises(StopIteration, iter.next) + raises(StopIteration, next, iter) pckl = pickle.dumps(iter) result = pickle.loads(pckl) - raises(StopIteration, result.next) + raises(StopIteration, next, result) def test_pickle_enum(self): import pickle diff --git a/pypy/objspace/std/test/test_iterobject.py b/pypy/objspace/std/test/test_iterobject.py --- a/pypy/objspace/std/test/test_iterobject.py +++ b/pypy/objspace/std/test/test_iterobject.py @@ -120,8 +120,8 @@ n = 10 d = range(n) it = reversed(d) - it.next() - it.next() + next(it) + next(it) assert it.__length_hint__() == n-2 d.append(n) assert it.__length_hint__() == n-2 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit