[pypy-commit] pypy py3k: fix failing test -- __next__ is the new next
MichaelBlume
noreply at buildbot.pypy.org
Mon Mar 12 20:01:42 CET 2012
Author: Mike Blume <mike at loggly.com>
Branch: py3k
Changeset: r53327:024ec5d326f0
Date: 2012-03-12 11:32 -0700
http://bitbucket.org/pypy/pypy/changeset/024ec5d326f0/
Log: fix failing test -- __next__ is the new 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, it.__next__)
#
d = deque('abcdefg')
it = iter(d)
d.append(d.pop())
- raises(RuntimeError, it.next)
+ raises(RuntimeError, it.__next__)
#
d = deque()
it = iter(d)
d.append(10)
- raises(RuntimeError, it.next)
+ raises(RuntimeError, it.__next__)
def test_count(self):
from _collections import deque
More information about the pypy-commit
mailing list