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

Method test_iter_for_loop

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

Source from the content-addressed store, hash-verified

161
162 # Test that for loops over iterators work
163 def test_iter_for_loop(self):
164 self.check_for_loop(iter(range(10)), list(range(10)))
165
166 # Test several independent iterators over the same list
167 def test_iter_independence(self):

Callers

nothing calls this directly

Calls 2

check_for_loopMethod · 0.95
listClass · 0.85

Tested by

no test coverage detected