(self)
| 154 | |
| 155 | # Test that iter(iter(x)) is the same as iter(x) |
| 156 | def test_iter_idempotency(self): |
| 157 | seq = list(range(10)) |
| 158 | it = iter(seq) |
| 159 | it2 = iter(it) |
| 160 | self.assertTrue(it is it2) |
| 161 | |
| 162 | # Test that for loops over iterators work |
| 163 | def test_iter_for_loop(self): |
nothing calls this directly
no test coverage detected