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

Class I

Lib/test/test_collections.py:986–988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

984 self.assertIsSubclass(type(x), Iterable)
985 # Check direct subclassing
986 class I(Iterable):
987 def __iter__(self):
988 return super().__iter__()
989 self.assertEqual(list(I()), [])
990 self.assertNotIsSubclass(str, I)
991 self.validate_abstract_methods(Iterable, '__iter__')

Callers 1

test_IterableMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_IterableMethod · 0.56