(self)
| 334 | |
| 335 | # Test two-argument iter() with function |
| 336 | def test_iter_function(self): |
| 337 | def spam(state=[0]): |
| 338 | i = state[0] |
| 339 | state[0] = i+1 |
| 340 | return i |
| 341 | self.check_iterator(iter(spam, 10), list(range(10)), pickle=False) |
| 342 | |
| 343 | # Test two-argument iter() with function that raises StopIteration |
| 344 | def test_iter_function_stop(self): |
nothing calls this directly
no test coverage detected