(self)
| 410 | |
| 411 | # Test for StopIteration from __getitem__ |
| 412 | def test_stop_sequence(self): |
| 413 | class MySequenceClass(SequenceClass): |
| 414 | def __getitem__(self, i): |
| 415 | if i == 10: |
| 416 | raise StopIteration |
| 417 | return SequenceClass.__getitem__(self, i) |
| 418 | self.check_for_loop(MySequenceClass(20), list(range(10)), pickle=False) |
| 419 | |
| 420 | # Test a big range |
| 421 | def test_iter_big_range(self): |
nothing calls this directly
no test coverage detected