MCPcopy Create free account
hub / github.com/pytest-dev/pytest / __getitem__

Method __getitem__

testing/python/raises.py:246–247  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

244 def test_raises_exception_looks_iterable(self):
245 class Meta(type):
246 def __getitem__(self, item):
247 return 1 / 0
248
249 def __len__(self):
250 return 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected