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

Method test_iter_class_for

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

Source from the content-addressed store, hash-verified

188
189 # Test a class with __iter__ in a for loop
190 def test_iter_class_for(self):
191 self.check_for_loop(IteratingSequenceClass(10), list(range(10)))
192
193 # Test a class with __iter__ with explicit iter()
194 def test_iter_class_iter(self):

Callers

nothing calls this directly

Calls 3

check_for_loopMethod · 0.95
listClass · 0.85

Tested by

no test coverage detected