Author: Philip Jenvey <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit