| 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): |
no outgoing calls
searching dependent graphs…