(self)
| 2254 | self.assertRaises(ZeroDivisionError, list, zip(E(s))) |
| 2255 | |
| 2256 | def test_ziplongest(self): |
| 2257 | for s in ("123", "", range(1000), ('do', 1.2), range(2000,2200,5)): |
| 2258 | for g in (G, I, Ig, S, L, R): |
| 2259 | self.assertEqual(list(zip_longest(g(s))), list(zip(g(s)))) |
| 2260 | self.assertEqual(list(zip_longest(g(s), g(s))), list(zip(g(s), g(s)))) |
| 2261 | self.assertRaises(TypeError, zip_longest, X(s)) |
| 2262 | self.assertRaises(TypeError, zip_longest, N(s)) |
| 2263 | self.assertRaises(ZeroDivisionError, list, zip_longest(E(s))) |
| 2264 | |
| 2265 | def test_map(self): |
| 2266 | for s in (range(10), range(0), range(100), (7,11), range(20,50,5)): |
nothing calls this directly
no test coverage detected