Home
last modified time | relevance | path

Searched refs:StopIteration (Results 1 – 25 of 413) sorted by relevance

12345678910>>...17

/external/python/cpython3/Lib/test/
Dtest_generator_stop.py9 raise StopIteration
18 raise StopIteration
25 self.assertIs(type(exc.__cause__), StopIteration)
26 self.assertIs(type(exc.__context__), StopIteration)
Dtest_yield_from.py169 except StopIteration:
215 except StopIteration:
349 e = StopIteration()
351 e = StopIteration("spam")
386 for v in 1, (2,), StopIteration(3):
682 except StopIteration as e:
692 f(StopIteration(3))
724 except StopIteration as e:
735 f(StopIteration(3))
776 for value in 2, (2,), StopIteration(2):
[all …]
Dtest_asyncgen.py30 except StopIteration as ex:
104 except StopIteration:
119 except StopIteration as ex:
167 except StopIteration as ex:
205 except StopIteration as ex:
225 raise StopIteration
447 except StopIteration as ex:
469 except StopIteration as ex:
476 except StopIteration as ex:
483 except StopIteration as ex:
[all …]
Dtest_enumerate.py23 if self.i >= len(self.seqn): raise StopIteration
43 if self.i >= len(self.seqn): raise StopIteration
78 except StopIteration:
103 self.assertRaises(StopIteration, next, e)
108 self.assertRaises(StopIteration, next, e)
113 self.assertRaises(StopIteration, next, e)
160 raise StopIteration
Dtest_generators.py43 self.assertIs(type(exc), StopIteration)
106 with self.assertRaises(StopIteration) as cm:
277 raise StopIteration
288 raise StopIteration
303 with self.assertRaises(StopIteration) as cm:
313 with self.assertRaises(StopIteration) as cm:
314 gen.send(StopIteration(2))
315 self.assertIsInstance(cm.exception.value, StopIteration)
451 except StopIteration:
1493 _StopIteration = StopIteration # make local because caught a *lot*
/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/
Dstrip_js_comments.py55 except StopIteration:
64 except StopIteration:
77 except StopIteration:
/external/python/cpython2/Lib/test/
Dtest_bsddb.py75 except StopIteration:
88 except StopIteration:
101 except StopIteration:
111 except StopIteration:
122 except StopIteration:
132 except StopIteration:
142 except StopIteration:
155 except StopIteration:
234 except StopIteration:
247 except StopIteration:
Dtest_enumerate.py21 if self.i >= len(self.seqn): raise StopIteration
41 if self.i >= len(self.seqn): raise StopIteration
79 self.assertRaises(StopIteration, e.next)
84 self.assertRaises(StopIteration, e.next)
89 self.assertRaises(StopIteration, e.next)
136 raise StopIteration
Dtest_itertools.py42 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)
[all …]
/external/python/cpython2/Lib/
Dcontextlib.py18 except StopIteration:
25 except StopIteration:
37 except StopIteration, exc:
/external/python/cpython3/Lib/xml/etree/
DElementPath.py185 except StopIteration:
235 except StopIteration:
363 except StopIteration:
369 except StopIteration:
375 except StopIteration:
404 except StopIteration:
/external/python/cpython2/Lib/xml/etree/
DElementPath.py264 except StopIteration:
270 except StopIteration:
286 except StopIteration:
302 except StopIteration:
/external/python/pybind11/tests/
Dtest_sequences_and_iterators.py30 with pytest.raises(StopIteration):
35 with pytest.raises(StopIteration):
74 with pytest.raises(StopIteration):
145 with pytest.raises(StopIteration):
/external/tensorflow/tensorflow/python/summary/writer/
Dwriter_test.py103 self.assertRaises(StopIteration, lambda: next(rr))
177 self.assertRaises(StopIteration, lambda: next(rr))
262 self.assertRaises(StopIteration, lambda: next(rr))
276 self.assertRaises(StopIteration, lambda: next(rr))
360 self.assertRaises(StopIteration, lambda: next(rr))
420 self.assertRaises(StopIteration, lambda: next(rr))
599 self.assertRaises(StopIteration, lambda: next(events))
605 self.assertRaises(StopIteration, lambda: next(events))
608 self.assertRaises(StopIteration, lambda: next(event_paths))
670 self.assertRaises(StopIteration, lambda: next(events))
[all …]
/external/tensorflow/tensorflow/python/summary/
Dsummary_iterator_test.py50 self.assertRaises(StopIteration, lambda: next(rr))
58 self.assertRaises(StopIteration, lambda: next(rr))
/external/grpc-grpc/src/python/grpcio_testing/grpc_testing/_server/
D_service.py27 raise StopIteration()
63 except StopIteration:
/external/python/cpython2/Lib/json/
Dscanner.py32 raise StopIteration
63 raise StopIteration
/external/python/cpython3/Lib/json/
Dscanner.py32 raise StopIteration(idx) from None
63 raise StopIteration(idx)
/external/grpc-grpc/src/python/grpcio_tests/tests/testing/
D_client_application.py80 raise StopIteration()
113 except StopIteration:
139 except StopIteration:
/external/python/cpython3/Lib/
Dcontextlib.py118 except StopIteration:
125 except StopIteration:
136 except StopIteration as exc:
148 if type is StopIteration and exc.__cause__ is value:
206 if isinstance(value, (StopIteration, StopAsyncIteration)):
D_collections_abc.py127 raise StopIteration
147 except (GeneratorExit, StopIteration):
274 raise StopIteration
333 raise StopIteration
353 except (GeneratorExit, StopIteration):
608 except StopIteration:
834 except StopIteration:
Dheapq.py351 except StopIteration:
361 except StopIteration:
375 except StopIteration:
387 except StopIteration:
/external/llvm-project/llvm/utils/gdb-scripts/
Dprettyprinters.py53 raise StopIteration
78 raise StopIteration
110 raise StopIteration
130 raise StopIteration
133 raise StopIteration
175 raise StopIteration
/external/python/cpython3/Doc/includes/
Dmp_pool.py111 except StopIteration:
143 except StopIteration:
/external/eigen/debug/gdb/
Dprinters.py101 raise StopIteration
109 raise StopIteration
165 raise StopIteration

12345678910>>...17