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

Method test_seq_class_iter

Lib/test/test_iter.py:202–203  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200
201 # Test iter() on a sequence class without __iter__
202 def test_seq_class_iter(self):
203 self.check_iterator(iter(SequenceClass(10)), list(range(10)))
204
205 def test_mutating_seq_class_iter_pickle(self):
206 orig = SequenceClass(5)

Callers

nothing calls this directly

Calls 3

check_iteratorMethod · 0.95
listClass · 0.85
SequenceClassClass · 0.70

Tested by

no test coverage detected