MCPcopy Index your code
hub / github.com/python/cpython / E

Class E

Lib/test/test_itertools.py:2170–2178  ·  view source on GitHub ↗

Test propagation of exceptions

Source from the content-addressed store, hash-verified

2168 return self
2169
2170class E:
2171 'Test propagation of exceptions'
2172 def __init__(self, seqn):
2173 self.seqn = seqn
2174 self.i = 0
2175 def __iter__(self):
2176 return self
2177 def __next__(self):
2178 3 // 0
2179
2180class E2:
2181 'Test propagation of exceptions after two iterations'

Callers 15

test_accumulateMethod · 0.70
test_batchedMethod · 0.70
test_chainMethod · 0.70
test_compressMethod · 0.70
test_productMethod · 0.70
test_cycleMethod · 0.70
test_groupbyMethod · 0.70
test_filterMethod · 0.70
test_filterfalseMethod · 0.70
test_zipMethod · 0.70
test_ziplongestMethod · 0.70
test_mapMethod · 0.70

Calls

no outgoing calls

Tested by 15

test_accumulateMethod · 0.56
test_batchedMethod · 0.56
test_chainMethod · 0.56
test_compressMethod · 0.56
test_productMethod · 0.56
test_cycleMethod · 0.56
test_groupbyMethod · 0.56
test_filterMethod · 0.56
test_filterfalseMethod · 0.56
test_zipMethod · 0.56
test_ziplongestMethod · 0.56
test_mapMethod · 0.56