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

Class BadList

Lib/test/test_csv.py:197–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 # Check that exceptions are passed up the chain
196 self._write_error_test(OSError, BadIterable())
197 class BadList:
198 def __len__(self):
199 return 10
200 def __getitem__(self, i):
201 if i > 2:
202 raise OSError
203 self._write_error_test(OSError, BadList())
204 class BadItem:
205 def __str__(self):

Callers 1

test_write_arg_validMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_write_arg_validMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…