Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r46239:ac3bce776870 Date: 2011-08-03 10:23 +0200 http://bitbucket.org/pypy/pypy/changeset/ac3bce776870/
Log: A failing test. diff --git a/pypy/module/itertools/test/test_itertools.py b/pypy/module/itertools/test/test_itertools.py --- a/pypy/module/itertools/test/test_itertools.py +++ b/pypy/module/itertools/test/test_itertools.py @@ -266,6 +266,13 @@ raises(StopIteration, islc.next) # drops the 6th and raise assert it.next() == "j" + it = iter("abcdefghij") + islc = itertools.islice(it, 3, 4, 3) + assert islc.next() == "d" # drops 0, 1, 2, returns item #3 + assert it.next() == "e" + raises(StopIteration, islc.next) # item #4 is 'stop', so just raise + assert it.next() == "f" + def test_islice_overflow(self): import itertools import sys _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit