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

Method test_seq_class_for

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

Source from the content-addressed store, hash-verified

196
197 # Test for loop on a sequence class without __iter__
198 def test_seq_class_for(self):
199 self.check_for_loop(SequenceClass(10), list(range(10)))
200
201 # Test iter() on a sequence class without __iter__
202 def test_seq_class_iter(self):

Callers

nothing calls this directly

Calls 3

check_for_loopMethod · 0.95
listClass · 0.85
SequenceClassClass · 0.70

Tested by

no test coverage detected