[pypy-commit] pypy py3k: prefer the builtin next

pjenvey noreply at buildbot.pypy.org
Tue Mar 13 20:26:57 CET 2012


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r53469:eff965900147
Date: 2012-03-13 12:26 -0700
http://bitbucket.org/pypy/pypy/changeset/eff965900147/

Log:	prefer the builtin next

diff --git a/pypy/module/_collections/test/test_deque.py b/pypy/module/_collections/test/test_deque.py
--- a/pypy/module/_collections/test/test_deque.py
+++ b/pypy/module/_collections/test/test_deque.py
@@ -65,17 +65,17 @@
         d = deque('abcdefg')
         it = iter(d)
         d.pop()
-        raises(RuntimeError, it.__next__)
+        raises(RuntimeError, next, it)
         #
         d = deque('abcdefg')
         it = iter(d)
         d.append(d.pop())
-        raises(RuntimeError, it.__next__)
+        raises(RuntimeError, next, it)
         #
         d = deque()
         it = iter(d)
         d.append(10)
-        raises(RuntimeError, it.__next__)
+        raises(RuntimeError, next, it)
 
     def test_count(self):
         from _collections import deque


More information about the pypy-commit mailing list