Lines Matching refs:StopIteration
42 raise StopIteration
654 r1 = Repeater(1, 3, StopIteration)
655 r2 = Repeater(2, 4, StopIteration)
668 r2 = Repeater(2, 4, StopIteration)
875 self.assertRaises(StopIteration, t.next)
988 self.assertRaises(StopIteration, izip().next)
991 self.assertRaises(StopIteration, f([]).next)
992 self.assertRaises(StopIteration, f(StopNow()).next)
994 self.assertRaises(StopIteration, islice([], None).next)
995 self.assertRaises(StopIteration, islice(StopNow(), None).next)
998 self.assertRaises(StopIteration, p.next)
999 self.assertRaises(StopIteration, q.next)
1001 self.assertRaises(StopIteration, p.next)
1002 self.assertRaises(StopIteration, q.next)
1004 self.assertRaises(StopIteration, repeat(None, 0).next)
1007 self.assertRaises(StopIteration, f(lambda x:x, []).next)
1008 self.assertRaises(StopIteration, f(lambda x:x, StopNow()).next)
1101 except StopIteration:
1111 except StopIteration:
1251 if self.i >= len(self.seqn): raise StopIteration
1271 if self.i >= len(self.seqn): raise StopIteration
1301 raise StopIteration
1501 raise StopIteration
1520 with self.assertRaises(StopIteration):