def test_itertools_islice_end():
 from itertools import izip, islice
 it = izip([2, 3, 4], [4, 5, 6])
 list(islice(it, 2))
 for x in it:
  AreEqual(x, (4, 6))

def test_itertools_islice_end ( ) : from itertools import izip , islice it = izip ( [ 2 , 3 , 4 ] , [ 4 , 5 , 6 ] ) list ( islice ( it , 2 ) ) for x in it : AreEqual ( x , ( 4 , 6 ) )
islice shouldnt consume values after the limit specified by step .