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

Method test_iter_class_iter

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

Source from the content-addressed store, hash-verified

192
193 # Test a class with __iter__ with explicit iter()
194 def test_iter_class_iter(self):
195 self.check_iterator(iter(IteratingSequenceClass(10)), list(range(10)))
196
197 # Test for loop on a sequence class without __iter__
198 def test_seq_class_for(self):

Callers

nothing calls this directly

Calls 3

check_iteratorMethod · 0.95
listClass · 0.85

Tested by

no test coverage detected