| 324 | # Test a new_style class with __iter__ but no next() method |
| 325 | def test_new_style_iter_class(self): |
| 326 | class IterClass(object): |
| 327 | def __iter__(self): |
| 328 | return self |
| 329 | self.assertRaises(TypeError, iter, IterClass()) |
| 330 | |
| 331 | # Test two-argument iter() with callable instance |
no outgoing calls
searching dependent graphs…