From 6d35af994a8f82db6dd95cb1a9082cd9dc995ea3 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 5 Feb 2012 12:42:33 -0500 Subject: alias advance_iterator to next --- test_six.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test_six.py') diff --git a/test_six.py b/test_six.py index 6e2c7ff..a99fbb3 100644 --- a/test_six.py +++ b/test_six.py @@ -226,12 +226,13 @@ def test_dictionary_iterators(): def test_advance_iterator(): + assert six.next is six.advance_iterator l = [1, 2] it = iter(l) - assert six.advance_iterator(it) == 1 - assert six.advance_iterator(it) == 2 - py.test.raises(StopIteration, six.advance_iterator, it) - py.test.raises(StopIteration, six.advance_iterator, it) + assert six.next(it) == 1 + assert six.next(it) == 2 + py.test.raises(StopIteration, six.next, it) + py.test.raises(StopIteration, six.next, it) def test_iterator(): -- cgit v1.2.1