Home
last modified time | relevance | path

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

12345678910>>...15

/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_asyncgen.py30 except StopIteration as ex:
104 except StopIteration:
119 except StopIteration as ex:
158 except StopIteration as ex:
194 except StopIteration as ex:
214 raise StopIteration
404 except StopIteration as ex:
426 except StopIteration as ex:
433 except StopIteration as ex:
440 except StopIteration as ex:
[all …]
Dtest_yield_from.py168 except StopIteration:
214 except StopIteration:
348 e = StopIteration()
350 e = StopIteration("spam")
385 for v in 1, (2,), StopIteration(3):
680 except StopIteration as e:
690 f(StopIteration(3))
722 except StopIteration as e:
733 f(StopIteration(3))
774 for value in 2, (2,), StopIteration(2):
[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.py44 self.assertIs(type(exc), StopIteration)
107 with self.assertRaises(StopIteration) as cm:
278 raise StopIteration
289 raise StopIteration
304 with self.assertRaises(StopIteration) as cm:
314 with self.assertRaises(StopIteration) as cm:
315 gen.send(StopIteration(2))
316 self.assertIsInstance(cm.exception.value, StopIteration)
1346 _StopIteration = StopIteration # make local because caught a *lot*
Dtest_coroutines.py38 except StopIteration as ex:
57 except StopIteration as ex:
527 raise StopIteration
536 raise StopIteration
544 raise StopIteration
607 with self.assertRaises(StopIteration):
751 with self.assertRaisesRegex(StopIteration, 'spam'):
796 with self.assertRaisesRegex(StopIteration, 'spam'):
822 with self.assertRaisesRegex(StopIteration, 'spam'):
891 return StopIteration(10)
[all …]
/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/cpython3/Lib/xml/etree/
DElementPath.py119 except StopIteration:
156 except StopIteration:
281 except StopIteration:
287 except StopIteration:
293 except StopIteration:
322 except StopIteration:
/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/
Dcontextlib.py18 except StopIteration:
25 except StopIteration:
37 except StopIteration, exc:
/external/swiftshader/third_party/llvm-7.0/llvm/utils/gdb-scripts/
Dprettyprinters.py48 raise StopIteration
73 raise StopIteration
106 raise StopIteration
126 raise StopIteration
129 raise StopIteration
172 raise StopIteration
/external/tensorflow/tensorflow/python/summary/writer/
Dwriter_test.py102 self.assertRaises(StopIteration, lambda: next(rr))
176 self.assertRaises(StopIteration, lambda: next(rr))
261 self.assertRaises(StopIteration, lambda: next(rr))
275 self.assertRaises(StopIteration, lambda: next(rr))
359 self.assertRaises(StopIteration, lambda: next(rr))
419 self.assertRaises(StopIteration, lambda: next(rr))
518 self.assertRaises(StopIteration, lambda: next(events))
524 self.assertRaises(StopIteration, lambda: next(events))
527 self.assertRaises(StopIteration, lambda: next(event_paths))
589 self.assertRaises(StopIteration, lambda: next(events))
[all …]
/external/python/cpython2/Lib/xml/etree/
DElementPath.py264 except StopIteration:
270 except StopIteration:
286 except StopIteration:
302 except StopIteration:
/external/autotest/tko/parsers/
Dbase.py30 except StopIteration:
50 except StopIteration:
/external/python/cpython3/Lib/
Dcontextlib.py113 except StopIteration:
120 except StopIteration:
131 except StopIteration as exc:
143 if type is StopIteration and exc.__cause__ is value:
201 if isinstance(value, (StopIteration, StopAsyncIteration)):
D_collections_abc.py123 raise StopIteration
143 except (GeneratorExit, StopIteration):
266 raise StopIteration
324 raise StopIteration
344 except (GeneratorExit, StopIteration):
591 except StopIteration:
810 except StopIteration:
Dheapq.py351 except StopIteration:
361 except StopIteration:
375 except StopIteration:
387 except StopIteration:
/external/grpc-grpc/src/python/grpcio_testing/grpc_testing/_server/
D_service.py27 raise StopIteration()
63 except StopIteration:
/external/grpc-grpc/src/python/grpcio_tests/tests/testing/
D_client_application.py80 raise StopIteration()
113 except StopIteration:
139 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/eigen/debug/gdb/
Dprinters.py101 raise StopIteration
109 raise StopIteration
165 raise StopIteration
/external/python/cpython3/Doc/includes/
Dmp_pool.py111 except StopIteration:
143 except StopIteration:

12345678910>>...15