def test_iter_except(self): d = ["a", "b", "c"] it = iters.iter_except(d.pop, IndexError) self.assertEqual(["c", "b", "a"], list(it))
def test_iter_except(self): d = ["a", "b", "c"] it = iters.iter_except(d.pop, IndexError) self.assertEqual(["c", "b", "a"], list(it))